spec/routemaster/responses/hateoas_response_spec.rb in routemaster-drain-2.2.2 vs spec/routemaster/responses/hateoas_response_spec.rb in routemaster-drain-2.3.0

- old
+ new

@@ -42,9 +42,19 @@ it 'returns the body without the _links key' do expect(subject.body_without_links).to eq({ 'foo' => 'bar' }) end end + + describe '#has?' do + it 'returns true for an existing link' do + expect(subject.has?(:resource_a)).to be_truthy + end + + it 'returns false for a non existing link' do + expect(subject.has?(:other_resource)).to be_falsy + end + end end end end end