Commit c9b1df1201dccded5fdfb4835209af9c0f258c55
1 parent
39fe9b64
Exists in
master
and in
4 other branches
Fixing tests
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
spec/workers/post_receive_spec.rb
... | ... | @@ -21,7 +21,6 @@ describe PostReceive do |
21 | 21 | it "does not run if the author is not in the project" do |
22 | 22 | Key.stub(find_by_id: nil) |
23 | 23 | |
24 | - project.should_not_receive(:observe_push) | |
25 | 24 | project.should_not_receive(:execute_hooks) |
26 | 25 | |
27 | 26 | PostReceive.new.perform(pwd(project), 'sha-old', 'sha-new', 'refs/heads/master', key_id).should be_false |
... | ... | @@ -32,7 +31,6 @@ describe PostReceive do |
32 | 31 | project.should_receive(:execute_hooks) |
33 | 32 | project.should_receive(:execute_services) |
34 | 33 | project.should_receive(:update_merge_requests) |
35 | - project.should_receive(:observe_push) | |
36 | 34 | |
37 | 35 | PostReceive.new.perform(pwd(project), 'sha-old', 'sha-new', 'refs/heads/master', key_id) |
38 | 36 | end | ... | ... |