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.
This commit is contained in:
James Edwards-Jones 2018-01-08 19:43:32 +00:00
parent 40e3d9f37b
commit bd9ead683c
1 changed files with 1 additions and 1 deletions

View File

@ -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