Skip to content

Commit

Permalink
One more failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Woodthorpe committed Jun 12, 2018
1 parent 09bcbd0 commit 003735a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/octokit/client/stats_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
{ :status => 202 }, # Cold request
{ :status => 202 }, # Cold request
{ :status => 204, :body => [].to_json }, # Warm request
{ :status => 204, :body => [].to_json } # Warm request
)
end

Expand All @@ -28,7 +29,10 @@
it "returns [] when GitHub returns 204" do
stats = @client.contributors_stats("octokit/octokit.rb", :retry_timeout => 3)
expect(stats).to eq([])
end

it "doesn't retry when GitHub returns 204" do
stats = @client.contributors_stats("octokit/octokit.rb", :retry_timeout => 4)
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/contributors"), :times => 3
end

Expand Down

0 comments on commit 003735a

Please sign in to comment.