summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r--spec/gitlab_shell_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb
index ab12e87..29093ac 100644
--- a/spec/gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_spec.rb
@@ -153,7 +153,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) { |msg| msg.should =~ /for John Doe/ }
+ $logger.should_receive(:info).with(/for John Doe/)
end
end
@@ -229,7 +229,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) { |msg| msg.should =~ /for John Doe/ }
+ $logger.should_receive(:info).with(/for John Doe/)
end
end