Skip to content

Commit

Permalink
테스트 통과
Browse files Browse the repository at this point in the history
  • Loading branch information
km-jeff-dean committed Apr 5, 2024
1 parent d1d55de commit a0dd5da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/active_record/type/spatial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def spatial_factory
geo_type: @geo_type,
sql_type: @sql_type,
srid: @srid
)
)
end

def klass
Expand Down
4 changes: 2 additions & 2 deletions test/basic_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_save_and_load_point
obj2 = SpatialModel.find(id)
assert_equal factory.point(1.0, 2.0), obj2.latlon
assert_equal 3857, obj2.latlon.srid
# assert_equal true, RGeo::Geos.is_geos?(obj2.latlon)
assert_equal true, RGeo::Geos.geos?(obj2.latlon)
end

def test_save_and_load_geographic_point
Expand All @@ -58,7 +58,7 @@ def test_save_and_load_geographic_point
obj2 = SpatialModel.find(id)
# assert_equal geographic_factory.point(1.0, 2.0), obj2.latlon_geo
assert_equal 4326, obj2.latlon_geo.srid
# assert_equal false, RGeo::Geos.is_geos?(obj2.latlon_geo)
# assert_equal false, RGeo::Geos.geos?(obj2.latlon_geo)
end

def test_save_and_load_point_from_wkt
Expand Down
2 changes: 1 addition & 1 deletion test/ddl_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def test_create_point_geometry_using_shortcut

def test_create_geometry_using_shortcut_with_srid
klass.connection.create_table(:spatial_models, force: true) do |t|
t.geometry "latlon", srid: 4326
t.geometry "latlon100", srid: 4326
end
klass.reset_column_information
col = klass.columns.last
Expand Down

0 comments on commit a0dd5da

Please sign in to comment.