Skip to content
Browse files

Bypass IdentityMap in PostgreSQL geometric tests.

The identity map cache prevents us from seeing the DB formatted strings.
  • Loading branch information...
1 parent b6843f2 commit 0fd0d68962bfde407b6a35116efe277293e43962 @jasoncodes jasoncodes committed Apr 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/base_test.rb
View
4 activerecord/test/cases/base_test.rb
@@ -895,7 +895,7 @@ def test_geometric_content
assert g.save
# Reload and check that we have all the geometric attributes.
- h = Geometric.find(g.id)
+ h = ActiveRecord::IdentityMap.without { Geometric.find(g.id) }
assert_equal '(5,6.1)', h.a_point
assert_equal '[(2,3),(5.5,7)]', h.a_line_segment
@@ -923,7 +923,7 @@ def test_geometric_content
assert g.save
# Reload and check that we have all the geometric attributes.
- h = Geometric.find(g.id)
+ h = ActiveRecord::IdentityMap.without { Geometric.find(g.id) }
assert_equal '(5,6.1)', h.a_point
assert_equal '[(2,3),(5.5,7)]', h.a_line_segment

0 comments on commit 0fd0d68

Please sign in to comment.
Something went wrong with that request. Please try again.