Permalink
Browse files

Dont use Rails 3 finder syntax in Rails 2.3.x test [#4303 state:resol…

…ved]
  • Loading branch information...
1 parent 0e57c70 commit 1f44fc90c68132a7ab3a86526cf867d13c5291af @lifo lifo committed Mar 31, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/eager_test.rb
@@ -834,7 +834,7 @@ def test_include_has_one_using_primary_key
def test_preloading_empty_polymorphic_parent
t = Tagging.create!(:taggable_type => 'Post', :taggable_id => Post.maximum(:id) + 1, :tag => tags(:general))
- assert_queries(2) { @tagging = Tagging.preload(:taggable).find(t.id) }
+ assert_queries(2) { @tagging = Tagging.find(t.id, :include => :taggable) }
assert_no_queries { assert ! @tagging.taggable }
end
end

0 comments on commit 1f44fc9

Please sign in to comment.