提交 a9edd6cf 编写于 作者: E Emilio Tagua

Add test to show that when IdentityMap is disabled finders returns different objects.

上级 f1913ad8
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册