spec/github/repos/downloads/get_spec.rb in github_api-0.9.0 vs spec/github/repos/downloads/get_spec.rb in github_api-0.9.1
- old
+ new
@@ -20,11 +20,13 @@
let(:body) { fixture('repos/download.json') }
let(:status) { 200 }
it { should respond_to :find }
+ it { expect { subject.get }.to raise_error(ArgumentError) }
+
it "should fail to get resource without download id" do
- expect { subject.get user, repo, nil }.to raise_error(ArgumentError)
+ expect { subject.get user, repo }.to raise_error(ArgumentError)
end
it "should get the resource" do
subject.get user, repo, download_id
a_get(request_path).should have_been_made