test/excon/integration_test.rb in excon-hypermedia-0.4.3 vs test/excon/integration_test.rb in excon-hypermedia-0.5.0
- old
+ new
@@ -46,13 +46,9 @@
response = api.rel('product').get(expand: { uid: 'bicycle' })
assert response.body.include?('https://www.example.org/product/bicycle')
end
- def test_invalid_relation
- assert_raises(NoMethodError) { api.rel('invalid') }
- end
-
def test_link
response = api.rel('product', expand: { uid: 'bicycle' }).get
assert_equal data(:bicycle)['_links']['handlebar']['href'], response.resource._links.handlebar.href
end