spec/unit/yaks/collection_resource_spec.rb in yaks-0.4.2 vs spec/unit/yaks/collection_resource_spec.rb in yaks-0.4.3

- old
+ new

@@ -11,11 +11,11 @@ its(:type) { should be_nil } its(:links) { should eql [] } its(:attributes) { should eql({}) } its(:members) { should eql [] } its(:subresources) { should eql({}) } - its(:members_rel) { should eql('members') } + its(:collection_rel) { should eql('members') } end context 'with a full constructor' do let(:init_opts) { { @@ -30,11 +30,11 @@ type: 'order', links: [Yaks::Resource::Link.new(:self, 'http://order/10', {})], attributes: { customer: 'John Doe', price: 10.00 } ) ], - members_rel: 'http://api.example.org/rels/orders' + collection_rel: 'http://api.example.org/rels/orders' } } its(:type) { should eql 'order' } its(:links) { should eql [ @@ -49,11 +49,11 @@ links: [Yaks::Resource::Link.new(:self, 'http://order/10', {})], attributes: { customer: 'John Doe', price: 10.00 } ) ] } - its(:members_rel) { should eq 'http://api.example.org/rels/orders'} + its(:collection_rel) { should eq 'http://api.example.org/rels/orders'} its(:subresources) { should eql( 'http://api.example.org/rels/orders' => Yaks::CollectionResource.new( type: 'order', attributes: { total: 10.00 }, @@ -66,10 +66,10 @@ type: 'order', links: [Yaks::Resource::Link.new(:self, 'http://order/10', {})], attributes: { customer: 'John Doe', price: 10.00 } ) ], - members_rel: 'http://api.example.org/rels/orders' + collection_rel: 'http://api.example.org/rels/orders' ) ) } end