summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_gitlab_shell_spec.rb
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-10-01 12:51:04 +0000
committerNick Thomas <nick@gitlab.com>2018-10-01 12:51:04 +0000
commit8bf88fba3cbb4837058431ffa5224536513a830d (patch)
tree7d552fec736c74d5588cd1a2b3ab4fa901aee2b1 /spec/gitlab_shell_gitlab_shell_spec.rb
parent3cf936123cda48a8856fb6cd534331f2dabe9e15 (diff)
parent05441b826b7dc39b1523123e00bf00ce497ef75d (diff)
downloadgitlab-shell-8bf88fba3cbb4837058431ffa5224536513a830d.tar.gz
Merge branch 'gitlab-shell-no-glid-argument' into 'master'
Remove mistaken support for `gitlab-shell user-123` Closes #151 See merge request gitlab-org/gitlab-shell!247
Diffstat (limited to 'spec/gitlab_shell_gitlab_shell_spec.rb')
-rw-r--r--spec/gitlab_shell_gitlab_shell_spec.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/gitlab_shell_gitlab_shell_spec.rb b/spec/gitlab_shell_gitlab_shell_spec.rb
index abe71e1..9afeac8 100644
--- a/spec/gitlab_shell_gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_gitlab_shell_spec.rb
@@ -69,13 +69,6 @@ describe 'bin/gitlab-shell' do
expect(status).to be_success
end
- it 'succeeds and prints username when a valid known user id is given' do
- output, status = run!(["user-10"])
-
- expect(output).to eq("Welcome to GitLab, @someuser!\n")
- expect(status).to be_success
- end
-
it 'succeeds and prints username when a valid known username is given' do
output, status = run!(["username-someuser"])
@@ -91,13 +84,6 @@ describe 'bin/gitlab-shell' do
expect(status).to be_success
end
- it 'succeeds and prints Anonymous when a valid unknown user id is given' do
- output, status = run!(["user-12345"])
-
- expect(output).to eq("Welcome to GitLab, Anonymous!\n")
- expect(status).to be_success
- end
-
it 'succeeds and prints Anonymous when a valid unknown username is given' do
output, status = run!(["username-unknown"])
@@ -136,13 +122,6 @@ describe 'bin/gitlab-shell' do
expect(status).to be_success
end
- it 'succeeds and prints username when a valid known user id is given in the middle of other input' do
- output, status = run!(["-c/usr/share/webapps/gitlab-shell/bin/gitlab-shell", "user-10", "2foo"])
-
- expect(output).to eq("Welcome to GitLab, @someuser!\n")
- expect(status).to be_success
- end
-
it 'succeeds and prints username when a valid known username is given in the middle of other input' do
output, status = run!(["-c/usr/share/webapps/gitlab-shell/bin/gitlab-shell", "username-someuser" ,"foo"])