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
{{ message }}
This repository has been archived by the owner on May 4, 2021. It is now read-only.
While looking at app/adapters/adapter.rb and app/adapters/abstract_adapter.rb, it seems they could be combined into one class, unless there is a design pattern involved? Also, it's not entirely clear why the abstract_adapter.rb requires both class and instance methods (it seems lines 50-57 try to create instance methods that delegate to class methods for :simple_maps and :to_maps, but they seem to be instance methods already in adapter.rb).
Adapter#map_to_public is not fully covered by unit tests.
The AbstractAdapter#to_public_hash seems to be memoized, but that could prevent field additions or deletions from showing up? Perhaps it should not be memoized?
The #to_json instance method calls a class method, i.e.
This method is not covered by unit tests (looking at simplecov report). Also, the rhs return value from AbstractAdapter#merge_strategy is not covered by unit tests.
While looking at
app/adapters/adapter.rb
andapp/adapters/abstract_adapter.rb
, it seems they could be combined into one class, unless there is a design pattern involved? Also, it's not entirely clear why theabstract_adapter.rb
requires both class and instance methods (it seems lines 50-57 try to create instance methods that delegate to class methods for:simple_maps
and:to_maps
, but they seem to be instance methods already inadapter.rb
).Adapter#map_to_public
is not fully covered by unit tests.Extracted this issue from #77
The text was updated successfully, but these errors were encountered: