Skip to content

Commit

Permalink
Clear IdentityMap before continue this test, we can do this here beca…
Browse files Browse the repository at this point in the history
…use store_full_sti_class is not supposed to change during "runtime".
  • Loading branch information
miloops committed Nov 19, 2010
1 parent edb69b9 commit 4a0a160
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def test_class_names
post = Namespaced::Post.find_by_title( 'Great stuff', :include => :tagging ) post = Namespaced::Post.find_by_title( 'Great stuff', :include => :tagging )
assert_nil post.tagging assert_nil post.tagging


ActiveRecord::IdentityMap.clear
ActiveRecord::Base.store_full_sti_class = true ActiveRecord::Base.store_full_sti_class = true
post = Namespaced::Post.find_by_title( 'Great stuff', :include => :tagging ) post = Namespaced::Post.find_by_title( 'Great stuff', :include => :tagging )
assert_instance_of Tagging, post.tagging assert_instance_of Tagging, post.tagging
Expand Down

0 comments on commit 4a0a160

Please sign in to comment.