Permalink
Browse files

failing test for #9869

  • Loading branch information...
1 parent ba29581 commit f029fb07c210dd384f8ad02b5ce8903911c540d3 Neeraj Singh committed with jonleighton Mar 25, 2013
Showing with 6 additions and 0 deletions.
  1. +5 −0 activerecord/test/cases/scoping/named_scoping_test.rb
  2. +1 −0 activerecord/test/models/comment.rb
@@ -459,4 +459,9 @@ def test_eager_default_scope_relations_are_deprecated
end
assert_equal [posts(:welcome).title], klass.all.map(&:title)
end
+
+ def test_subclass_merges_scopes_properly
+ assert_equal 1, SpecialComment.crazy_all.count
+ end
+
end
@@ -29,6 +29,7 @@ def self.all_as_method
end
class SpecialComment < Comment
+ scope :crazy_all, -> { where(body: 'go crazy').created }
end
class SubSpecialComment < SpecialComment

0 comments on commit f029fb0

Please sign in to comment.