spec/github/users/keys/update_spec.rb in github_api-0.9.0 vs spec/github/users/keys/update_spec.rb in github_api-0.9.1
- old
+ new
@@ -27,10 +27,10 @@
context "resouce updated" do
let(:body) { fixture('users/key.json') }
let(:status) { 201 }
it "should fail to get resource without key id" do
- expect { subject.update nil }.to raise_error(ArgumentError)
+ 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,