aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-10-20 19:00:25 -0300
committerEmilio Tagua <miloops@gmail.com>2010-11-19 19:08:56 -0300
commit4a0a1605cdee91bb8c9d3c1cb5989efa550a3816 (patch)
treeecd46ce902a0807fd76cfe88391a460e17d1cfa3 /activerecord/test/cases
parentedb69b9be3be8ea8477004625d1ddf3f3de37d77 (diff)
downloadrails-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/test/cases')
-rw-r--r--activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb1
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