Skip to content

Commit

Permalink
Dont use Rails 3 finder syntax in Rails 2.3.x test [#4303 state:resol…
Browse files Browse the repository at this point in the history
…ved]
  • Loading branch information
lifo committed Mar 31, 2010
1 parent 0e57c70 commit 1f44fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/associations/eager_test.rb
Expand Up @@ -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.