diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-01-28 22:30:52 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-01-28 22:30:52 +0900 |
commit | 2812af720e4869f03e836d1b527b0a50c2a52b22 (patch) | |
tree | a303e118fb7ad04f656d8e4607510f03d8782dac /activerecord/test | |
parent | 60b8ab710d6afd5810f1a4625b6551190e12d81f (diff) | |
download | rails-2812af720e4869f03e836d1b527b0a50c2a52b22.tar.gz rails-2812af720e4869f03e836d1b527b0a50c2a52b22.tar.bz2 rails-2812af720e4869f03e836d1b527b0a50c2a52b22.zip |
Suppress :warning:s
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/scoping/named_scoping_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/scoping/named_scoping_test.rb b/activerecord/test/cases/scoping/named_scoping_test.rb index 722153bb33..acba97bbb8 100644 --- a/activerecord/test/cases/scoping/named_scoping_test.rb +++ b/activerecord/test/cases/scoping/named_scoping_test.rb @@ -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 |