Skip to content
Browse files

postgresql correctly typecasts back to Ruby, so change assertions

  • Loading branch information...
1 parent 9fd3bde commit 15b0dcd517c9f163708d007ca5ce1f01e7d39914 @tenderlove tenderlove committed Feb 2, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 activerecord/test/cases/base_test.rb
View
6 activerecord/test/cases/base_test.rb
@@ -1150,7 +1150,8 @@ def test_geometric_content
# use a geometric function to test for an open path
objs = Geometric.find_by_sql ["select isopen(a_path) from geometrics where id = ?", g.id]
- assert_equal objs[0].isopen, 't'
+
+ assert_equal true, objs[0].isopen
# test alternate formats when defining the geometric types
@@ -1178,7 +1179,8 @@ def test_geometric_content
# use a geometric function to test for an closed path
objs = Geometric.find_by_sql ["select isclosed(a_path) from geometrics where id = ?", g.id]
- assert_equal objs[0].isclosed, 't'
+
+ assert_equal true, objs[0].isclosed
end
end

0 comments on commit 15b0dcd

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