You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was messing up with the test suite in activerecord-postgis-adapter. Shall we find an API that is less error-prone?
For instance, a user doing:
old_default=spatial_factory_store.defaultspatial_factory_store.default=my_mock# some testsspatial_factory_store.default=old_default
would actually get a different instance of spatial_factory_store at the beginning and the end (the first one doesn't necessarily have default set, the second one does).
Another issue is this one:
# in initializerspatial_factory_store.default=some_default# later in the codebasefactory=spatial_factory_store.default(specific_attributes)# the `specific_attributes` will not be taken into account
The text was updated successfully, but these errors were encountered:
Issue create from this discussion: rgeo/activerecord-postgis-adapter#412 (comment)
The accessor for
#default
also behaves as a setter:This was messing up with the test suite in activerecord-postgis-adapter. Shall we find an API that is less error-prone?
For instance, a user doing:
would actually get a different instance of
spatial_factory_store
at the beginning and the end (the first one doesn't necessarily have default set, the second one does).Another issue is this one:
The text was updated successfully, but these errors were encountered: