Commit c9b1df12 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fixing tests

parent 91f74ffb246e
......@@ -21,7 +21,6 @@
it "does not run if the author is not in the project" do
Key.stub(find_by_id: nil)
project.should_not_receive(:observe_push)
project.should_not_receive(:execute_hooks)
PostReceive.new.perform(pwd(project), 'sha-old', 'sha-new', 'refs/heads/master', key_id).should be_false
......@@ -32,7 +31,6 @@
project.should_receive(:execute_hooks)
project.should_receive(:execute_services)
project.should_receive(:update_merge_requests)
project.should_receive(:observe_push)
PostReceive.new.perform(pwd(project), 'sha-old', 'sha-new', 'refs/heads/master', key_id)
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