diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2012-07-15 18:36:06 +0400 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2012-07-19 01:25:10 +0400 |
commit | 655418bed2f81651c54988963713769f85d8b5da (patch) | |
tree | b6cf82c648c1a5bcacdd7f763e1da1fc2b4d136a /spec/workers | |
parent | f5908cef19a3cd2c44be02b453fecb568b2c6c8e (diff) |
System hooks: fix broken tests
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 c70b2f6cebb..5f3b6d3daec 100644 --- a/spec/workers/post_receive_spec.rb +++ b/spec/workers/post_receive_spec.rb @@ -22,14 +22,14 @@ describe PostReceive do Key.stub(find_by_identifier: nil) project.should_not_receive(:observe_push) - project.should_not_receive(:execute_web_hooks) + project.should_not_receive(:execute_hooks) PostReceive.perform(project.path, 'sha-old', 'sha-new', 'refs/heads/master', key_id).should be_false end 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', project.owner) + project.should_receive(:execute_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 |