aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-01-28 22:30:52 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-01-28 22:30:52 +0900
commit2812af720e4869f03e836d1b527b0a50c2a52b22 (patch)
treea303e118fb7ad04f656d8e4607510f03d8782dac /activerecord/test
parent60b8ab710d6afd5810f1a4625b6551190e12d81f (diff)
downloadrails-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.rb2
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