diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-10-20 19:00:25 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-11-19 19:08:56 -0300 |
commit | 4a0a1605cdee91bb8c9d3c1cb5989efa550a3816 (patch) | |
tree | ecd46ce902a0807fd76cfe88391a460e17d1cfa3 /activerecord | |
parent | edb69b9be3be8ea8477004625d1ddf3f3de37d77 (diff) | |
download | rails-4a0a1605cdee91bb8c9d3c1cb5989efa550a3816.tar.gz rails-4a0a1605cdee91bb8c9d3c1cb5989efa550a3816.tar.bz2 rails-4a0a1605cdee91bb8c9d3c1cb5989efa550a3816.zip |
Clear IdentityMap before continue this test, we can do this here because store_full_sti_class is not supposed to change during "runtime".
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb b/activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb index fb59f63f91..d75791cab9 100644 --- a/activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb +++ b/activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb @@ -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 |