spec/github/repos/keys_spec.rb in github_api-0.6.3 vs spec/github/repos/keys_spec.rb in github_api-0.6.4
- old
+ new
@@ -41,11 +41,11 @@
end
context "resource not found" do
before do
stub_get("/repos/#{user}/#{repo}/keys").
- to_return(:body => fixture("repos/keys.json"), :status => 404)
+ to_return(:body => '', :status => 404)
end
it "should fail to retrieve resource" do
expect {
github.repos.keys.list user, repo
@@ -83,10 +83,10 @@
end
context "resource not found" do
before do
stub_get("/repos/#{user}/#{repo}/keys/#{key_id}").
- to_return(:body => fixture("repos/keys.json"), :status => 404)
+ to_return(:body => '', :status => 404)
end
it "should fail to retrieve resource" do
expect {
github.repos.keys.get user, repo, key_id