aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-04-22 12:28:26 +0200
committerJon Leighton <j@jonathanleighton.com>2012-04-25 15:45:06 +0100
commitaf27c8b0418fb41e51b6d096b0ab0228ff773e37 (patch)
treeb1c7348c26f1459066871e35c0f201be47a7703b /activerecord/test/cases
parent618c5fc3c0f4d1d5bee8c8f8e517b6bfacd17dc2 (diff)
downloadrails-af27c8b0418fb41e51b6d096b0ab0228ff773e37.tar.gz
rails-af27c8b0418fb41e51b6d096b0ab0228ff773e37.tar.bz2
rails-af27c8b0418fb41e51b6d096b0ab0228ff773e37.zip
extract deprecated code
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/named_scope_test.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb
index 2f4eb489ab..06d076943e 100644
--- a/activerecord/test/cases/named_scope_test.rb
+++ b/activerecord/test/cases/named_scope_test.rb
@@ -460,11 +460,6 @@ class NamedScopeTest < ActiveRecord::TestCase
klass.table_name = 'posts'
assert_deprecated do
- klass.scope :welcome, { :conditions => { :id => posts(:welcome).id } }
- end
- assert_equal [posts(:welcome).title], klass.welcome.map(&:title)
-
- assert_deprecated do
klass.scope :welcome_2, klass.where(:id => posts(:welcome).id)
end
assert_equal [posts(:welcome).title], klass.welcome_2.map(&:title)