diff options
author | Marcin Raczkowski <marcin.raczkowski@gmail.com> | 2010-08-29 12:04:43 +0200 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-11-19 19:04:39 -0300 |
commit | ccb335da1f293dc745be0171ce3d95e50223d934 (patch) | |
tree | f4526ff6fddd72274a7dc11c355ba365b501da07 /activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb | |
parent | 3ab625f984d3f014735117fb7d0fcf2ff076ff11 (diff) | |
download | rails-ccb335da1f293dc745be0171ce3d95e50223d934.tar.gz rails-ccb335da1f293dc745be0171ce3d95e50223d934.tar.bz2 rails-ccb335da1f293dc745be0171ce3d95e50223d934.zip |
IdentityMap - Adjustments to test cases
Diffstat (limited to 'activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb | 2 |
1 files changed, 2 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..fae4029bbc 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,8 @@ class EagerLoadIncludeFullStiClassNamesTest < ActiveRecord::TestCase post = Namespaced::Post.find_by_title( 'Great stuff', :include => :tagging ) assert_nil post.tagging + ActiveRecord::IdentityMap.clear # we need to clear IM to reload post. + ActiveRecord::Base.store_full_sti_class = true post = Namespaced::Post.find_by_title( 'Great stuff', :include => :tagging ) assert_instance_of Tagging, post.tagging |