diff --git a/lib/moonshot/build_mechanism/github_release.rb b/lib/moonshot/build_mechanism/github_release.rb index 83d8762..5fe56d9 100644 --- a/lib/moonshot/build_mechanism/github_release.rb +++ b/lib/moonshot/build_mechanism/github_release.rb @@ -227,7 +227,7 @@ def doctor_check_upstream end def doctor_check_hub_auth - sh_out('hub api user') + sh_out('hub ci-status master') rescue => e critical "`hub` failed, install hub and authorize it.\n#{e.message}" else diff --git a/spec/moonshot/build_mechanism/github_release_spec.rb b/spec/moonshot/build_mechanism/github_release_spec.rb index c9de15e..14effec 100644 --- a/spec/moonshot/build_mechanism/github_release_spec.rb +++ b/spec/moonshot/build_mechanism/github_release_spec.rb @@ -57,7 +57,7 @@ module Moonshot # rubocop:disable ModuleLength describe '#doctor_check_hub_auth' do it 'should succeed with 0 exit status.' do expect(subject).to receive(:sh_out) - .with('hub api user') + .with('hub ci-status master') expect(subject).to receive(:success) .with('`hub` installed and authorized.') subject.send(:doctor_check_hub_auth)