mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Suppress ⚠️s
This commit is contained in:
parent
60b8ab710d
commit
2812af720e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue