1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

scope needs the second argument

This commit is contained in:
Akira Matsuda 2016-01-28 22:29:55 +09:00
parent dc925119a3
commit 60b8ab710d

View file

@ -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