diff options
Diffstat (limited to 'activerecord/test/cases/associations/eager_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/eager_test.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb index 35070ba506..b79c69bbb5 100644 --- a/activerecord/test/cases/associations/eager_test.rb +++ b/activerecord/test/cases/associations/eager_test.rb @@ -39,19 +39,6 @@ class EagerAssociationTest < ActiveRecord::TestCase assert_nil member.favourite_club end - def test_loading_with_one_association_without_primary_key - Comment.primary_key = nil - begin - assert_nothing_raised do - Post.includes(:comments).references(:comments).all - end - rescue - raise $! - ensure - Comment.primary_key = 'id' - end - end - def test_loading_with_one_association posts = Post.find(:all, :include => :comments) post = posts.find { |p| p.id == 1 } |