Skip to content

Commit

Permalink
re-enable the delete test
Browse files Browse the repository at this point in the history
  • Loading branch information
bronson committed Oct 7, 2016
1 parent 875a85e commit 4393a8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/github_spec.rb
Expand Up @@ -74,10 +74,12 @@ def should_raise e
end

it "should delete a repository" do
pending
stub_a = stub_request(:delete, "https://api.github.com/repos/repo/").
with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => {:status => 'deleted' }.to_json, :headers => {})
stub_a = stub_request(:delete, "https://api.github.com/repos/repo/?delete_token%5Bstatus%5D=deleted").
with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => {:status => 'deleted' }.to_json, :headers => {})

github.delete "repo"

Expand Down Expand Up @@ -110,4 +112,3 @@ def should_raise e
fakehub.client.count.should == 65
end
end

0 comments on commit 4393a8e

Please sign in to comment.