spec/unit/yaks/collection_resource_spec.rb in yaks-0.4.0.rc1 vs spec/unit/yaks/collection_resource_spec.rb in yaks-0.4.0
- old
+ new
@@ -48,11 +48,11 @@
)
]
}
its(:subresources) { should eql(
- 'http://rels/collection' => Yaks::CollectionResource.new(
+ 'members' => Yaks::CollectionResource.new(
type: 'order',
attributes: { total: 10.00 },
links: [
Yaks::Resource::Link.new('http://rels/summary', 'http://order/10/summary', {}),
Yaks::Resource::Link.new(:profile, 'http://rels/collection', {})
@@ -61,10 +61,10 @@
Yaks::Resource.new(
type: 'order',
links: [Yaks::Resource::Link.new(:self, 'http://order/10', {})],
attributes: { customer: 'John Doe', price: 10.00 }
)
- ]
+ ],
)
)
}
end