spec/github/repos/keys/edit_spec.rb in github_api-0.9.0 vs spec/github/repos/keys/edit_spec.rb in github_api-0.9.1
- old
+ new
@@ -19,9 +19,11 @@
context "resource edited successfully" do
let(:body) { fixture("repos/key.json") }
let(:status) { 200 }
+ it { expect {subject.edit user, repo }.to raise_error(ArgumentError) }
+
it "should edit the resource" do
subject.edit user, repo, key_id, inputs
a_patch(request_path).should have_been_made
end