@joeyw Try stubbing any other header there. I suspect [this guard clause][clause] is giving a false positive on that test. `nil.to_i` is 0.

[clause]: https://github.com/joeyw/octokit.rb/blob/fix-auto-paginate-for-enterprise/lib/octokit/rate_limit.rb#L23