test/response_test.rb in sawyer-0.0.8 vs test/response_test.rb in sawyer-0.0.9
- old
+ new
@@ -58,10 +58,10 @@
assert @res.time >= @now
end
def test_makes_request_from_relation
@stubs.post '/a' do
- [201, {}, ""]
+ [201, {'Content-Type' => 'application/json'}, ""]
end
res = @res.data.rels[:self].call
assert_equal 201, res.status
assert_nil res.data