diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2012-07-15 17:36:06 +0300 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2012-07-19 00:25:10 +0300 |
commit | 655418bed2f81651c54988963713769f85d8b5da (patch) | |
tree | b6cf82c648c1a5bcacdd7f763e1da1fc2b4d136a /spec/workers | |
parent | f5908cef19a3cd2c44be02b453fecb568b2c6c8e (diff) | |
download | gitlab-ce-655418bed2f81651c54988963713769f85d8b5da.tar.gz |
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 |