test/hyperclient_test.rb in hyperclient-0.6.1 vs test/hyperclient_test.rb in hyperclient-0.7.0

- old
+ new

@@ -18,12 +18,12 @@ client.headers['Access-Token'] = 'token' end end it 'creates a Faraday connection with the default and additional headers' do - client.headers['Content-Type'].must_equal 'application/json' - client.headers['Accept'].must_equal 'application/json' + client.headers['Content-Type'].must_equal 'application/hal+json' + client.headers['Accept'].must_equal 'application/hal+json,application/json' client.headers['Access-Token'].must_equal 'token' end it 'creates a Faraday connection with the entry point url' do client.connection.url_prefix.to_s.must_equal 'http://api.example.org/' @@ -32,11 +32,11 @@ it 'creates a Faraday connection with the default block plus any additional handlers' do handlers = client.connection.builder.handlers handlers.must_include Faraday::Request::OAuth handlers.must_include Faraday::Response::RaiseError handlers.must_include FaradayMiddleware::FollowRedirects - handlers.must_include FaradayMiddleware::EncodeJson - handlers.must_include FaradayMiddleware::ParseJson + handlers.must_include FaradayMiddleware::EncodeHalJson + handlers.must_include FaradayMiddleware::ParseHalJson handlers.must_include Faraday::Adapter::NetHttp end end end end