spec/github/repos/commits/compare_spec.rb in github_api-0.9.0 vs spec/github/repos/commits/compare_spec.rb in github_api-0.9.1
- old
+ new
@@ -16,13 +16,13 @@
:headers => {:content_type => "application/json; charset=utf-8"})
}
after { reset_authentication_for(subject) }
+ it { expect { subject.compare }.to raise_error(ArgumentError) }
+
it "should fail to get resource without base" do
- expect {
- subject.compare user, repo, nil, head
- }.to raise_error(ArgumentError)
+ expect { subject.compare user, repo, nil, head }.to raise_error(ArgumentError)
end
it "should compare successfully" do
subject.compare user, repo, base, head
a_get(request_path).should have_been_made