aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJason Weathered <jason@jasoncodes.com>2011-04-17 23:51:20 +1000
committerJason Weathered <jason@jasoncodes.com>2011-04-17 23:51:20 +1000
commit0fd0d68962bfde407b6a35116efe277293e43962 (patch)
treebd17da82fdcfdd5fb99a0901a4d4e944290de3c5 /activerecord
parentb6843f22ac42b503f6b8ac00105ca0679049be7d (diff)
downloadrails-0fd0d68962bfde407b6a35116efe277293e43962.tar.gz
rails-0fd0d68962bfde407b6a35116efe277293e43962.tar.bz2
rails-0fd0d68962bfde407b6a35116efe277293e43962.zip
Bypass IdentityMap in PostgreSQL geometric tests.
The identity map cache prevents us from seeing the DB formatted strings.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/base_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index e57c5b3b87..815ff7b825 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -895,7 +895,7 @@ class BasicsTest < ActiveRecord::TestCase
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 @@ class BasicsTest < ActiveRecord::TestCase
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