diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2018-01-08 22:43:32 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2018-01-08 23:34:38 +0300 |
commit | bd9ead683c3bade57a59d06530a1973768622a78 (patch) | |
tree | f4ce27a23549983ee9e3e4de6f702e9544c6b5fa /spec/lib/gitlab/shell_spec.rb | |
parent | 40e3d9f37b31283c5b63ae6ab161ac87e39185d3 (diff) |
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.
Diffstat (limited to 'spec/lib/gitlab/shell_spec.rb')
-rw-r--r-- | spec/lib/gitlab/shell_spec.rb | 2 |
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 |