spec/unit/yaks/mapper/has_many_spec.rb in yaks-0.11.0 vs spec/unit/yaks/mapper/has_many_spec.rb in yaks-0.12.0

- old
+ new

@@ -70,10 +70,10 @@ end describe '#collection_mapper' do let(:collection_mapper) { Yaks::Undefined } - subject(:has_many) { described_class.new(name: :name, item_mapper: :mapper, rel: :rel, collection_mapper: collection_mapper) } + subject(:has_many) { described_class.new(name: :name, item_mapper: :mapper, rel: :rel, collection_mapper: collection_mapper) } context 'when the collection mapper is undefined' do it 'should derive one from collection and policy' do expect(has_many.collection_mapper([], Yaks::DefaultPolicy.new)).to equal Yaks::CollectionMapper end