mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Clear IdentityMap before continue this test, we can do this here because store_full_sti_class is not supposed to change during "runtime".
This commit is contained in:
parent
edb69b9be3
commit
4a0a1605cd
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ class EagerLoadIncludeFullStiClassNamesTest < ActiveRecord::TestCase
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue