aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/test/cases/identity_map_test.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/activerecord/test/cases/identity_map_test.rb b/activerecord/test/cases/identity_map_test.rb
index df43d8c4f4..c51bdf5f69 100644
--- a/activerecord/test/cases/identity_map_test.rb
+++ b/activerecord/test/cases/identity_map_test.rb
@@ -26,10 +26,13 @@ class IdentityMapTest < ActiveRecord::TestCase
:posts, :tags, :taggings, :comments, :subscribers
def test_find_id
- assert_same(
- Client.find(3),
- Client.find(3)
- )
+ assert_same(Client.find(3), Client.find(3))
+ end
+
+ def test_find_id_without_identity_map
+ IdentityMap.without do
+ assert_not_same(Client.find(3), Client.find(3))
+ end
end
def test_find_pkey