Skip to content

Commit

Permalink
Bypass IdentityMap in PostgreSQL geometric tests.
Browse files Browse the repository at this point in the history
The identity map cache prevents us from seeing the DB formatted strings.
  • Loading branch information
jasoncodes committed Apr 17, 2011
1 parent b6843f2 commit 0fd0d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/base_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0fd0d68

Please sign in to comment.