summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2019-05-20 13:59:29 +0300
committerIgor Drozdov <idrozdov@gitlab.com>2019-05-20 13:59:29 +0300
commit2ae330c546ca32c99444e40a4fa6d43fd5f927e3 (patch)
tree4a960a203ea9172eb94aa13348e7432f03c49159
parente5500f24b564c4e8ef508190f2008f695b3646a5 (diff)
downloadgitlab-shell-id-fix-ci-go-execution.tar.gz
-rw-r--r--spec/gitlab_shell_two_factor_recovery_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/gitlab_shell_two_factor_recovery_spec.rb b/spec/gitlab_shell_two_factor_recovery_spec.rb
index 286c5f6..f2c7670 100644
--- a/spec/gitlab_shell_two_factor_recovery_spec.rb
+++ b/spec/gitlab_shell_two_factor_recovery_spec.rb
@@ -34,6 +34,8 @@ describe 'bin/gitlab-shell 2fa_recovery_codes' do
shared_examples 'dialog for regenerating recovery keys' do
context 'when the user agrees to regenerate keys' do
def verify_successful_regeneration!(cmd)
+ p "+++++++++++++++++++++++++++#{env}---------------#{cmd}"
+
Open3.popen2(env, cmd) do |stdin, stdout|
expect(stdout.gets).to eq("Are you sure you want to generate new two-factor recovery codes?\n")
expect(stdout.gets).to eq("Any existing recovery codes you saved will be invalidated. (yes/no)\n")