aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/method_scoping_test.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-05-17 15:41:22 +0100
committerPratik Naik <pratiknaik@gmail.com>2010-05-18 12:22:23 +0100
commit5ddc9049416e8b6093a7bb3ad4341694f7a14d9f (patch)
tree25c2531a9afc648509a664c61148836eb1546003 /activerecord/test/cases/method_scoping_test.rb
parentc53683595749dcfa223802669237480ac9ebc17f (diff)
downloadrails-5ddc9049416e8b6093a7bb3ad4341694f7a14d9f.tar.gz
rails-5ddc9049416e8b6093a7bb3ad4341694f7a14d9f.tar.bz2
rails-5ddc9049416e8b6093a7bb3ad4341694f7a14d9f.zip
Remove Model.clear_default_scope
Diffstat (limited to 'activerecord/test/cases/method_scoping_test.rb')
-rw-r--r--activerecord/test/cases/method_scoping_test.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/test/cases/method_scoping_test.rb b/activerecord/test/cases/method_scoping_test.rb
index 3a6354ec6d..cb599e363f 100644
--- a/activerecord/test/cases/method_scoping_test.rb
+++ b/activerecord/test/cases/method_scoping_test.rb
@@ -587,18 +587,6 @@ class HasAndBelongsToManyScopingTest< ActiveRecord::TestCase
end
end
-class ClearDefaultScopeTest < ActiveRecord::TestCase
- fixtures :developers
-
- def test_should_clear_default_scope
- klass = Class.new(DeveloperCalledDavid)
- klass.__send__ :clear_default_scope
- expected = Developer.all.collect { |dev| dev.name }
- actual = klass.all.collect { |dev| dev.name }
- assert_equal expected, actual
- end
-end
-
class DefaultScopingTest < ActiveRecord::TestCase
fixtures :developers, :posts