There was an error while loading. Please reload this page.
1 parent 10b19aa commit 8d8f9efCopy full SHA for 8d8f9ef
spec/gitlab_shell_spec.rb
@@ -153,7 +153,7 @@
153
154
it "should use usernames if configured to do so" do
155
GitlabConfig.any_instance.stub(audit_usernames: true)
156
- $logger.should_receive(:info) { |msg| msg.should =~ /for John Doe/ }
+ $logger.should_receive(:info).with(/for John Doe/)
157
end
158
159
@@ -229,7 +229,7 @@
229
230
231
232
233
234
235
0 commit comments