Commit 8d8f9efc authored by Kim "BKC" Carlbäcker's avatar Kim "BKC" Carlbäcker

simplify specs

parent 10b19aab
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment