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