Skip to content

Commit

Permalink
load current default value as is instead of making rgeo produce one. …
Browse files Browse the repository at this point in the history
…produced default is not memoized by rgeo.
  • Loading branch information
formigarafa committed Oct 14, 2024
1 parent 42e8e55 commit 35b0754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cases/basic_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_spatial_factory_attrs_parsing
has_z: false, has_m: false })

# wrong factory for default
old_default = spatial_factory_store.default
old_default = spatial_factory_store.instance_variable_get :@default
spatial_factory_store.default = RGeo::Geographic.spherical_factory(srid: 4326)

object = klass.new
Expand Down

0 comments on commit 35b0754

Please sign in to comment.