Commit 874166d8 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix models/ci/web_hook_spec.rb

parent 8d5c9935
...@@ -54,7 +54,7 @@ describe Ci::WebHook do ...@@ -54,7 +54,7 @@ describe Ci::WebHook do
end end
it "catches exceptions" do it "catches exceptions" do
expect(WebHook).to receive(:post).and_raise("Some HTTP Post error") expect(Ci::WebHook).to receive(:post).and_raise("Some HTTP Post error")
expect{ @web_hook.execute(@data) }.to raise_error expect{ @web_hook.execute(@data) }.to raise_error
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