diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-04-04 08:39:04 +0400 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-04-04 08:39:04 +0400 |
commit | 897da534fa7ab3b2280bfea05c5da4b57e3b8612 (patch) | |
tree | 1862d69123943b2e150f525620f7656682993ca4 /spec/workers | |
parent | eb2c1cd2e372b0cd1a5c408fb0abfbf10f77a216 (diff) |
Fix issues with push 600+ commits. refactored, improved push events
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/post_receive_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/post_receive_spec.rb b/spec/workers/post_receive_spec.rb index 6b833d7229a..c70b2f6cebb 100644 --- a/spec/workers/post_receive_spec.rb +++ b/spec/workers/post_receive_spec.rb @@ -29,14 +29,14 @@ describe PostReceive do it "asks the project to execute web hooks" do Project.stub(find_by_path: project) - project.should_receive(:execute_web_hooks).with('sha-old', 'sha-new', 'refs/heads/master', key_id) + project.should_receive(:execute_web_hooks).with('sha-old', 'sha-new', 'refs/heads/master', project.owner) PostReceive.perform(project.path, 'sha-old', 'sha-new', 'refs/heads/master', key_id) end it "asks the project to observe push/create event data" do Project.stub(find_by_path: project) - project.should_receive(:observe_push).with('sha-old', 'sha-new', 'refs/heads/master', key_id) + project.should_receive(:observe_push).with('sha-old', 'sha-new', 'refs/heads/master', project.owner) PostReceive.perform(project.path, 'sha-old', 'sha-new', 'refs/heads/master', key_id) end |