Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 18, 2024
1 parent 41e03aa commit e55d76f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/fbe/test_octo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ def test_caching
o.user('yegor256')
end

def test_off_quota
WebMock.disable_net_connect!
stub_request(:get, 'https://api.github.com/rate_limit')
.to_return(status: 200, body: '{}', headers: { 'X-RateLimit-Remaining' => '1000' })
o = Fbe.octo(loog: Loog::NULL, global: {}, options: Judges::Options.new)
assert(!o.off_quota)
end

def test_retrying
WebMock.disable_net_connect!
global = {}
Expand Down

0 comments on commit e55d76f

Please sign in to comment.