Remove of deprecated rspec-mocks methods

The "stub" syntax in rspec-mocks was replaced with "allow" syntax in
RSpec 3.
Eliminate warnings from using GitHub's preview API

If you don't explicitly add the `accept` option, Octokit prints a
warning to STDOUT every time you use part of the preview API.

There are no remaining warnings from GitHub after this change.