Skip to content

Commit

Permalink
Merge pull request #2 from Beardev118/fix/to_s-8.0
Browse files Browse the repository at this point in the history
Fixed point object compare issue
  • Loading branch information
Beardev118 committed Nov 28, 2023
2 parents 0c2cdc3 + 1425e2e commit 30d8b73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/cases/basic_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def test_set_point_wkt_wrong_type
def test_default_value
create_model
obj = SpatialModel.create
assert_equal factory.point(0, 0).x, obj.default_latlon.x
assert_equal factory.point(0, 0).y, obj.default_latlon.y
assert_equal factory.point(0, 0), obj.default_latlon
end

def test_custom_factory
Expand Down Expand Up @@ -218,7 +217,7 @@ def create_model
SpatialModel.connection.create_table(:spatial_models, force: true) do |t|
t.column "latlon", :st_point, srid: 3785
t.column "latlon_geo", :st_point, srid: 4326, geographic: true
t.column "default_latlon", :st_point, srid: 0, default: "POINT(0.0 0.0)"
t.column "default_latlon", :st_point, srid: 3785, default: "POINT(0.0 0.0)"
end
SpatialModel.reset_column_information
end
Expand Down

0 comments on commit 30d8b73

Please sign in to comment.