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:
parent
9fd3bde52a
commit
15b0dcd517
1 changed files with 4 additions and 2 deletions
|
@ -1150,7 +1150,8 @@ class BasicsTest < ActiveRecord::TestCase
|
|||
|
||||
# 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 @@ class BasicsTest < ActiveRecord::TestCase
|
|||
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue