diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-02-01 16:27:58 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-02-01 16:27:58 -0200 |
commit | 682a579b25deb1142b8f445ad9ae0c661bc58564 (patch) | |
tree | bdbcf5fa6a6cfba22fb15493e01a98ed54efa2b0 /activerecord/test | |
parent | cd93d7175e3f92c77744110204dc9194a3aa592c (diff) | |
download | rails-682a579b25deb1142b8f445ad9ae0c661bc58564.tar.gz rails-682a579b25deb1142b8f445ad9ae0c661bc58564.tar.bz2 rails-682a579b25deb1142b8f445ad9ae0c661bc58564.zip |
Remove warnings for already defined methods
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/scoping/named_scoping_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/scoping/named_scoping_test.rb b/activerecord/test/cases/scoping/named_scoping_test.rb index 9dc26cfd4d..f0ad9ebb8a 100644 --- a/activerecord/test/cases/scoping/named_scoping_test.rb +++ b/activerecord/test/cases/scoping/named_scoping_test.rb @@ -314,7 +314,9 @@ class NamedScopingTest < ActiveRecord::TestCase non_conflicts.each do |name| assert_nothing_raised do - klass.class_eval { scope name, ->{ where(approved: true) } } + silence_warnings do + klass.class_eval { scope name, ->{ where(approved: true) } } + end end assert_nothing_raised do |