Skip to content

Commit

Permalink
fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Stepanov committed Mar 25, 2022
1 parent 1abf814 commit 9efbb3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion lib/uffizzi/cli/preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def describe(deployment)

def run(options, command, file_path, deployment)
return Uffizzi.ui.say('You are not logged in.') unless Uffizzi::AuthHelper.signed_in?
return Uffizzi.ui.say('This command needs project to be set in config file') unless Uffizzi::AuthHelper.project_set?
return Uffizzi.ui.say('This command needs project to be set in config file') unless Uffizzi::AuthHelper.project_set?(options)

project_slug = options[:project].nil? ? ConfigFile.read_option(:project) : options[:project]

Expand Down
12 changes: 0 additions & 12 deletions test/support/uffizzi_stub_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,4 @@ def stub_uffizzi_create_credential_fail(body)

stub_request(:post, uri).to_return(status: 422, body: body.to_json)
end

def stub_uffizzi_create_credential(body)
uri = credentials_uri(Uffizzi.configuration.hostname)

stub_request(:post, uri).to_return(status: 201, body: body.to_json)
end

def stub_uffizzi_create_credential_fail(body)
uri = credentials_uri(Uffizzi.configuration.hostname)

stub_request(:post, uri).to_return(status: 422, body: body.to_json)
end
end

0 comments on commit 9efbb3c

Please sign in to comment.