spec/github/users/keys/update_spec.rb in github_api-0.9.7 vs spec/github/users/keys/update_spec.rb in github_api-0.10.0
- old
+ new
@@ -32,10 +32,10 @@
expect { subject.update }.to raise_error(ArgumentError)
end
it "should create resource successfully" do
subject.update key_id, inputs
- a_patch(request_path).with(:body => inputs,
+ a_patch(request_path).with(:body => inputs.except(:unrelated),
:query => {:access_token => OAUTH_TOKEN}).should have_been_made
end
it "should return the resource" do
key = subject.update key_id, inputs