From bd9ead683c3bade57a59d06530a1973768622a78 Mon Sep 17 00:00:00 2001 From: James Edwards-Jones Date: Mon, 8 Jan 2018 19:43:32 +0000 Subject: 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. --- spec/lib/gitlab/shell_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/lib/gitlab/shell_spec.rb') 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 -- cgit v1.2.1