1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

postgresql correctly typecasts back to Ruby, so change assertions

This commit is contained in:
Aaron Patterson 2012-02-02 13:41:25 -08:00
parent 9fd3bde52a
commit 15b0dcd517

View file

@ -1150,7 +1150,8 @@ class BasicsTest < ActiveRecord::TestCase
# use a geometric function to test for an open path # 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] 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 # test alternate formats when defining the geometric types
@ -1178,7 +1179,8 @@ class BasicsTest < ActiveRecord::TestCase
# use a geometric function to test for an closed path # 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] 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
end end