summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2018-01-08 19:43:32 +0000
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2018-01-08 20:34:38 +0000
commitbd9ead683c3bade57a59d06530a1973768622a78 (patch)
treef4ce27a23549983ee9e3e4de6f702e9544c6b5fa
parent40e3d9f37b31283c5b63ae6ab161ac87e39185d3 (diff)
downloadgitlab-ce-bd9ead683c3bade57a59d06530a1973768622a78.tar.gz
Fix spec in shell_spec.rb
The spec for "#add_key does nothing" would always have passed, since the expectation was on both the wrong object and message.
-rw-r--r--spec/lib/gitlab/shell_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/shell_spec.rb b/spec/lib/gitlab/shell_spec.rb
index 24fc17861dd..eb90f53468f 100644
--- a/spec/lib/gitlab/shell_spec.rb
+++ b/spec/lib/gitlab/shell_spec.rb
@@ -69,7 +69,7 @@ describe Gitlab::Shell do
end
it 'does nothing' do
- expect(Gitlab::Utils).not_to receive(:gitlab_shell_fast_execute)
+ expect(gitlab_shell).not_to receive(:gitlab_shell_fast_execute)
gitlab_shell.add_key('key-123', 'ssh-rsa foobar trailing garbage')
end