diff options
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/scoping/named_scoping_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/models/comment.rb | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/scoping/named_scoping_test.rb b/activerecord/test/cases/scoping/named_scoping_test.rb index 1ac68746de..afe32af1d1 100644 --- a/activerecord/test/cases/scoping/named_scoping_test.rb +++ b/activerecord/test/cases/scoping/named_scoping_test.rb @@ -461,7 +461,7 @@ class NamedScopingTest < ActiveRecord::TestCase end def test_subclass_merges_scopes_properly - assert_equal 1, SpecialComment.crazy_all.count + assert_equal 1, SpecialComment.where(body: 'go crazy').created.count end end diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb index 9d594bd7d6..ede5fbd0c6 100644 --- a/activerecord/test/models/comment.rb +++ b/activerecord/test/models/comment.rb @@ -29,7 +29,6 @@ class Comment < ActiveRecord::Base end class SpecialComment < Comment - scope :crazy_all, -> { where(body: 'go crazy').created } end class SubSpecialComment < SpecialComment |