spec/support/fake_github.rb in travis-1.11.1 vs spec/support/fake_github.rb in travis-1.12.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'gh' module GH class FakeRemote < Remote def setup(host, options) @@ -9,12 +11,13 @@ def http(*) raise NotImplementedError end - def post(key, body) - raise GH::Error unless @authenticated and key == '/authorizations' - frontend.load("url" => "https://api.github.com/authorizations/1", "token" => "github_token") + def post(key, _body) + raise GH::Error unless @authenticated && (key == '/authorizations') + + frontend.load('url' => 'https://api.github.com/authorizations/1', 'token' => 'github_token') end def head(*) end def delete(*) end end