Skip to content

Commit

Permalink
CPD-8183: Update failing doctor_check_hub_auth. (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
pstod authored Sep 21, 2023
1 parent 62d3518 commit 36969f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/moonshot/build_mechanism/github_release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/moonshot/build_mechanism/github_release_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 36969f8

Please sign in to comment.