提交 bd9ead68 编写于 作者: J 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.
上级 40e3d9f3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册