spec/github/repos/downloads/create_spec.rb in github_api-0.8.0 vs spec/github/repos/downloads/create_spec.rb in github_api-0.8.1
- old
+ new
@@ -51,16 +51,10 @@
download = subject.create user, repo, inputs
download.name.should == 'new_file.jpg'
end
end
- context "failed to create resource" do
- let(:body) { "" }
- let(:status) { [404, "Not Found"] }
-
- it "should faile to retrieve resource" do
- expect {
- subject.create user, repo, inputs
- }.to raise_error(Github::Error::NotFound)
- end
+ it_should_behave_like 'request failure' do
+ let(:requestable) { subject.create user, repo, inputs }
end
+
end # create