diff options
author | Jens Lukowski <jens.lukowski@digitalpaperplanes.com> | 2012-01-28 22:54:55 +0100 |
---|---|---|
committer | Jens Lukowski <jens.lukowski@digitalpaperplanes.com> | 2012-01-28 22:54:55 +0100 |
commit | 4b96dd7962a052af17b9c3a1fe39f4269c4f96c9 (patch) | |
tree | 1b32e9252a60edd98ee77e08bbd960194f29dd4d /activerecord/test | |
parent | fd3211ef677efe9531f38db58919a8c90d65892a (diff) | |
download | rails-4b96dd7962a052af17b9c3a1fe39f4269c4f96c9.tar.gz rails-4b96dd7962a052af17b9c3a1fe39f4269c4f96c9.tar.bz2 rails-4b96dd7962a052af17b9c3a1fe39f4269c4f96c9.zip |
failing test case for Issue 4718
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/identity_map_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/cases/identity_map_test.rb b/activerecord/test/cases/identity_map_test.rb index 3efc8bf559..0d031d433c 100644 --- a/activerecord/test/cases/identity_map_test.rb +++ b/activerecord/test/cases/identity_map_test.rb @@ -162,6 +162,14 @@ class IdentityMapTest < ActiveRecord::TestCase c2 = Comment.find(c.id) assert_same(c1, c2) end + + def test_queries_are_not_executed_when_finding_inherited_class_by_id + c = comments(:sub_special_comment) + SubSpecialComment.find(c.id) + assert_no_queries do + SubSpecialComment.find(c.id) + end + end ############################################################################## # Tests checking dirty attribute behavior with IM # |