diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-02 13:41:25 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-07 14:13:45 -0800 |
commit | 15b0dcd517c9f163708d007ca5ce1f01e7d39914 (patch) | |
tree | 527ff26ec4fce2498f325070df5b3f1d2bf664b8 /activerecord | |
parent | 9fd3bde52a780b0b0344840ceeae95f23344e8cc (diff) | |
download | rails-15b0dcd517c9f163708d007ca5ce1f01e7d39914.tar.gz rails-15b0dcd517c9f163708d007ca5ce1f01e7d39914.tar.bz2 rails-15b0dcd517c9f163708d007ca5ce1f01e7d39914.zip |
postgresql correctly typecasts back to Ruby, so change assertions
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 276244295d..acc0f272c1 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -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 |