Permalink
Browse files

Clear IdentityMap before continue this test, we can do this here beca…

…use store_full_sti_class is not supposed to change during "runtime".
  • Loading branch information...
1 parent edb69b9 commit 4a0a1605cdee91bb8c9d3c1cb5989efa550a3816 @miloops miloops committed Oct 20, 2010
@@ -27,6 +27,7 @@ def test_class_names
post = Namespaced::Post.find_by_title( 'Great stuff', :include => :tagging )
assert_nil post.tagging
+ ActiveRecord::IdentityMap.clear
ActiveRecord::Base.store_full_sti_class = true
post = Namespaced::Post.find_by_title( 'Great stuff', :include => :tagging )
assert_instance_of Tagging, post.tagging

0 comments on commit 4a0a160

Please sign in to comment.