提交 4a0a1605 编写于 作者: E Emilio Tagua

Clear IdentityMap before continue this test, we can do this here because...

Clear IdentityMap before continue this test, we can do this here because store_full_sti_class is not supposed to change during "runtime".
上级 edb69b9b
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册