diff options
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r-- | spec/gitlab_shell_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb index c3d4466..0e8999b 100644 --- a/spec/gitlab_shell_spec.rb +++ b/spec/gitlab_shell_spec.rb @@ -167,7 +167,7 @@ describe GitlabShell do it "should use usernames if configured to do so" do GitlabConfig.any_instance.stub(audit_usernames: true) - $logger.should_receive(:info).with("executing git command", hash_including(user: 'John Doe')) + $logger.should_receive(:info).with("executing git command", hash_including(user: 'testuser')) end end @@ -202,7 +202,7 @@ describe GitlabShell do it "should use usernames if configured to do so" do GitlabConfig.any_instance.stub(audit_usernames: true) - $logger.should_receive(:info).with("executing git command", hash_including(user: 'John Doe')) + $logger.should_receive(:info).with("executing git command", hash_including(user: 'testuser')) end end @@ -248,7 +248,7 @@ describe GitlabShell do it "should use usernames if configured to do so" do GitlabConfig.any_instance.stub(audit_usernames: true) - $logger.should_receive(:info).with("executing git command", hash_including(user: 'John Doe')) + $logger.should_receive(:info).with("executing git command", hash_including(user: 'testuser')) end end @@ -275,7 +275,7 @@ describe GitlabShell do it "should use usernames if configured to do so" do GitlabConfig.any_instance.stub(audit_usernames: true) - $logger.should_receive(:info).with("executing git command", hash_including(user: 'John Doe')) + $logger.should_receive(:info).with("executing git command", hash_including(user: 'testuser')) end end @@ -452,7 +452,7 @@ describe GitlabShell do before do Kernel.stub(:exec) shell.gl_repository = gl_repository - shell.username = gl_username + shell.instance_variable_set(:@username, gl_username) end it "uses Kernel::exec method" do |