aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/scoping/named_scoping_test.rb
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2013-07-03 21:48:52 +0200
committerArun Agrawal <arunagw@gmail.com>2013-07-03 23:23:11 +0200
commit50cbc03d18c5984347965a94027879623fc44cce (patch)
treea17969704ef5e65d3a678237066fec1abd090352 /activerecord/test/cases/scoping/named_scoping_test.rb
parent9105c59af05d3219e2811cab0642badbb4af5398 (diff)
downloadrails-50cbc03d18c5984347965a94027879623fc44cce.tar.gz
rails-50cbc03d18c5984347965a94027879623fc44cce.tar.bz2
rails-50cbc03d18c5984347965a94027879623fc44cce.zip
Remove deprecated `scope` use without passing a callable object.
Removed tests from deprecated code.
Diffstat (limited to 'activerecord/test/cases/scoping/named_scoping_test.rb')
-rw-r--r--activerecord/test/cases/scoping/named_scoping_test.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/cases/scoping/named_scoping_test.rb b/activerecord/test/cases/scoping/named_scoping_test.rb
index abd0b8621a..72c9787b84 100644
--- a/activerecord/test/cases/scoping/named_scoping_test.rb
+++ b/activerecord/test/cases/scoping/named_scoping_test.rb
@@ -435,16 +435,6 @@ class NamedScopingTest < ActiveRecord::TestCase
end
end
- def test_eager_scopes_are_deprecated
- klass = Class.new(ActiveRecord::Base)
- klass.table_name = 'posts'
-
- assert_deprecated do
- klass.scope :welcome_2, klass.where(:id => posts(:welcome).id)
- end
- assert_equal [posts(:welcome).title], klass.welcome_2.map(&:title)
- end
-
def test_eager_default_scope_relations_are_remove
klass = Class.new(ActiveRecord::Base)
klass.table_name = 'posts'