Commit bd9ead68 authored by James Edwards-Jones's avatar James Edwards-Jones

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.
parent 40e3d9f3
...@@ -69,7 +69,7 @@ describe Gitlab::Shell do ...@@ -69,7 +69,7 @@ describe Gitlab::Shell do
end end
it 'does nothing' do 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') gitlab_shell.add_key('key-123', 'ssh-rsa foobar trailing garbage')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment