diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-01-28 22:29:55 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-01-28 22:29:55 +0900 |
commit | 60b8ab710d6afd5810f1a4625b6551190e12d81f (patch) | |
tree | a22a27bf54f394271fe988623bc36f9b8d6f96cc /activerecord | |
parent | dc925119a3912ecfe0df400007163f33b99d6385 (diff) | |
download | rails-60b8ab710d6afd5810f1a4625b6551190e12d81f.tar.gz rails-60b8ab710d6afd5810f1a4625b6551190e12d81f.tar.bz2 rails-60b8ab710d6afd5810f1a4625b6551190e12d81f.zip |
scope needs the second argument
Diffstat (limited to 'activerecord')
-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 db1e42fcc2..722153bb33 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) + Topic.scope(reserved_method, -> { }) end end |