summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-07-06 17:45:54 +0200
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-07-06 17:45:54 +0200
commit8d8f9efc6347f5d34092c85b17d6f019b804d8a0 (patch)
treecbd772d7ae9c011b025d9d392b49640164228330
parent10b19aab2193d1c1e6ce77ed9b68a0f8e9cff4b8 (diff)
downloadgitlab-shell-8d8f9efc6347f5d34092c85b17d6f019b804d8a0.tar.gz
simplify specs
-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