Fixing tests
This commit is contained in:
parent
39fe9b644f
commit
c9b1df1201
1 changed files with 0 additions and 2 deletions
|
@ -21,7 +21,6 @@ describe PostReceive do
|
|||
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 @@ describe PostReceive do
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue