summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/gitlab_shell_discover_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_shell_discover_spec.rb b/spec/gitlab_shell_discover_spec.rb
index ea99067..225d6b9 100644
--- a/spec/gitlab_shell_discover_spec.rb
+++ b/spec/gitlab_shell_discover_spec.rb
@@ -108,7 +108,7 @@ describe 'bin/gitlab-shell' do
end
it 'outputs "Only SSH allowed"' do
- _, stderr, status = run!(["-c/usr/share/webapps/gitlab-shell/bin/gitlab-shell", "username-someuser"], env: {})
+ _, stderr, status = run!(["-c/usr/share/webapps/gitlab-shell/bin/gitlab-shell", "username-someuser"], env: {'SSH_CONNECTION' => ''})
expect(stderr).to eq("Only SSH allowed\n")
expect(status).not_to be_success