aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-07-20 19:31:17 +0100
committerJon Leighton <j@jonathanleighton.com>2012-07-20 19:31:17 +0100
commitf7d8aac40ab9b8357b55a7d38501ced0dec09448 (patch)
treef45168abbd45ef730e38c875d1105bc27636e883 /activerecord
parent45285f56f4993e3910df59e7e68b465a287ef089 (diff)
downloadrails-f7d8aac40ab9b8357b55a7d38501ced0dec09448.tar.gz
rails-f7d8aac40ab9b8357b55a7d38501ced0dec09448.tar.bz2
rails-f7d8aac40ab9b8357b55a7d38501ced0dec09448.zip
rm redundant test
now everything is converted to the new style, this is not needed
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb7
-rw-r--r--activerecord/test/models/author.rb2
2 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb
index 6e64a67761..4b7a2db096 100644
--- a/activerecord/test/cases/associations/has_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_associations_test.rb
@@ -1536,11 +1536,4 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
post.taggings_with_delete_all.delete_all
end
end
-
- test "association using a scope block" do
- author = authors(:david)
-
- assert author.posts.size > 1
- assert_equal author.posts.order('posts.id').limit(1), author.posts_with_scope_block
- end
end
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb
index b150400645..3157d8fe7f 100644
--- a/activerecord/test/models/author.rb
+++ b/activerecord/test/models/author.rb
@@ -26,8 +26,6 @@ class Author < ActiveRecord::Base
has_many :comments_with_order_and_conditions, -> { order('comments.body').where("comments.body like 'Thank%'") }, :through => :posts, :source => :comments
has_many :comments_with_include, -> { includes(:post) }, :through => :posts, :source => :comments
- has_many :posts_with_scope_block, -> { order('posts.id').limit(1) }, :class_name => "Post"
-
has_many :first_posts
has_many :comments_on_first_posts, -> { order('posts.id desc, comments.id asc') }, :through => :first_posts, :source => :comments