spec/github/repos/collaborators/remove_spec.rb in github_api-0.9.0 vs spec/github/repos/collaborators/remove_spec.rb in github_api-0.9.1
- old
+ new
@@ -18,11 +18,13 @@
context "resouce removed" do
let(:body) { '' }
let(:status) { 204 }
+ it { expect { subject.remove }.to raise_error(ArgumentError) }
+
it "should fail to add resource if 'collaborator' input is missing" do
- expect { subject.remove user, repo, nil }.to raise_error(ArgumentError)
+ expect { subject.remove user, repo }.to raise_error(ArgumentError)
end
it "should add resource successfully" do
subject.remove user, repo, collaborator
a_delete(request_path).should have_been_made