1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Suppress ⚠️s

This commit is contained in:
Akira Matsuda 2016-01-28 22:30:52 +09:00
parent 60b8ab710d
commit 2812af720e

View file

@ -455,7 +455,7 @@ class NamedScopingTest < ActiveRecord::TestCase
[:public_method, :protected_method, :private_method].each do |reserved_method|
assert Topic.respond_to?(reserved_method, true)
ActiveRecord::Base.logger.expects(:warn)
Topic.scope(reserved_method, -> { })
silence_warnings { Topic.scope(reserved_method, -> { }) }
end
end