diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-04-26 10:20:57 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-04-26 13:29:47 +0100 |
commit | 519001d94093f1907b1cca3f1f385a0a9d8fec9b (patch) | |
tree | ca4ca384510a20a579c8f1cf759aaf5a1c0bfb33 /activerecord | |
parent | 848276dfba42f996a01e720a252e5fee83a4b6c2 (diff) | |
download | rails-519001d94093f1907b1cca3f1f385a0a9d8fec9b.tar.gz rails-519001d94093f1907b1cca3f1f385a0a9d8fec9b.tar.bz2 rails-519001d94093f1907b1cca3f1f385a0a9d8fec9b.zip |
default_scope with a hash is deprecated
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/named_scope_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb index 06d076943e..3a927aeddd 100644 --- a/activerecord/test/cases/named_scope_test.rb +++ b/activerecord/test/cases/named_scope_test.rb @@ -465,16 +465,6 @@ class NamedScopeTest < ActiveRecord::TestCase assert_equal [posts(:welcome).title], klass.welcome_2.map(&:title) end - def test_eager_default_scope_hashes_are_not_deprecated - klass = Class.new(ActiveRecord::Base) - klass.table_name = 'posts' - - assert_not_deprecated do - klass.send(:default_scope, :conditions => { :id => posts(:welcome).id }) - end - assert_equal [posts(:welcome).title], klass.all.map(&:title) - end - def test_eager_default_scope_relations_are_deprecated klass = Class.new(ActiveRecord::Base) klass.table_name = 'posts' |