diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-04-08 23:53:25 +0100 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-12 19:46:04 -0700 |
commit | 788bd30859f3f21184defd240c3d32f179515225 (patch) | |
tree | 44097a9006b805f17dcb3180a966b97ab43bdcb1 /activerecord/test/cases | |
parent | 8572ae6671c6ec7c2524f327cee82215896e5648 (diff) | |
download | rails-788bd30859f3f21184defd240c3d32f179515225.tar.gz rails-788bd30859f3f21184defd240c3d32f179515225.tar.bz2 rails-788bd30859f3f21184defd240c3d32f179515225.zip |
ActiveRecord::Base.scopes hash is not needed
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/named_scope_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb index 2b3e1900e1..8fd1fc2577 100644 --- a/activerecord/test/cases/named_scope_test.rb +++ b/activerecord/test/cases/named_scope_test.rb @@ -58,17 +58,6 @@ class NamedScopeTest < ActiveRecord::TestCase assert Topic.approved.respond_to?(:tables_in_string, true) end - def test_subclasses_inherit_scopes - assert Topic.scopes.include?(:base) - - assert Reply.scopes.include?(:base) - assert_equal Reply.find(:all), Reply.base - end - - def test_classes_dont_inherit_subclasses_scopes - assert !ActiveRecord::Base.scopes.include?(:base) - end - def test_scopes_with_options_limit_finds_to_those_matching_the_criteria_specified assert !Topic.find(:all, :conditions => {:approved => true}).empty? |