features/steps/default_config.rb in hyperclient-0.6.1 vs features/steps/default_config.rb in hyperclient-0.7.0

- old
+ new

@@ -4,10 +4,12 @@ step 'I use the default hyperclient config' do @api = Hyperclient.new('http://api.example.org') end step 'the request should have been sent with the correct JSON headers' do - assert_requested :get, 'api.example.org', headers: { 'Content-Type' => 'application/json', 'Accept' => 'application/json' } + assert_requested :get, 'api.example.org', headers: { + 'Content-Type' => 'application/hal+json', 'Accept' => 'application/hal+json,application/json' + } end step 'I send some data to the API' do stub_request(:post, 'http://api.example.org/posts') assert_equal 200, api._links.posts._post(title: 'My first blog post')._response.status