Skip to content

Commit 8d8f9ef

Browse files
committed
simplify specs
1 parent 10b19aa commit 8d8f9ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/gitlab_shell_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153

154154
it "should use usernames if configured to do so" do
155155
GitlabConfig.any_instance.stub(audit_usernames: true)
156-
$logger.should_receive(:info) { |msg| msg.should =~ /for John Doe/ }
156+
$logger.should_receive(:info).with(/for John Doe/)
157157
end
158158
end
159159

@@ -229,7 +229,7 @@
229229

230230
it "should use usernames if configured to do so" do
231231
GitlabConfig.any_instance.stub(audit_usernames: true)
232-
$logger.should_receive(:info) { |msg| msg.should =~ /for John Doe/ }
232+
$logger.should_receive(:info).with(/for John Doe/)
233233
end
234234
end
235235

0 commit comments

Comments
 (0)