spec/kintone/command/space_members_spec.rb in kintone-0.1.2 vs spec/kintone/command/space_members_spec.rb in kintone-0.1.3

- old
+ new

@@ -11,11 +11,12 @@ stub_request( :get, 'https://example.cybozu.com/k/v1/space/members.json' ) .with(query: { id: id }) - .to_return(body: response_data.to_json, status: 200) + .to_return(body: response_data.to_json, status: 200, + headers: { 'Content-type' => 'application/json' }) end subject { target.get(id) } let(:id) { 1 } @@ -44,10 +45,11 @@ stub_request( :put, 'https://example.cybozu.com/k/v1/space/members.json' ) .with(body: request_data.to_json) - .to_return(body: '{}', status: 200) + .to_return(body: '{}', status: 200, + headers: { 'Content-type' => 'application/json' }) end subject { target.update(id, members) } let(:id) { 1 }