spec/github/repos/comments/create_spec.rb in github_api-0.9.0 vs spec/github/repos/comments/create_spec.rb in github_api-0.9.1
- old
+ new
@@ -25,9 +25,13 @@
context "resouce created" do
let(:body) { fixture('repos/commit_comment.json') }
let(:status) { 201 }
+ it { expect { subject.create user }.to raise_error(ArgumentError) }
+
+ it { expect { subject.create }.to raise_error(ArgumentError) }
+
it "should fail to create resource if 'body' input is missing" do
expect {
subject.create user, repo, sha, inputs.except('body')
}.to raise_error(Github::Error::RequiredParams)
end