Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-28 10:59:34 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-28 10:59:34 +0400
commitbd948549293e1abfa32ec566b687670fed47a3d7 (patch)
tree4a7d624c07888d4f9127b1e95e3535fc09f1c007 /spec
parente0b5e260357b4882e43863f61dcf337b120534b2 (diff)
fix tests
Diffstat (limited to 'spec')
-rw-r--r--spec/models/project_hooks_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/models/project_hooks_spec.rb b/spec/models/project_hooks_spec.rb
index 60457e20c51..3559c72f6f0 100644
--- a/spec/models/project_hooks_spec.rb
+++ b/spec/models/project_hooks_spec.rb
@@ -38,11 +38,14 @@ describe Project, "Hooks" do
@project_hook = create(:project_hook)
@project_hook_2 = create(:project_hook)
project.hooks << [@project_hook, @project_hook_2]
+
+ stub_request(:post, @project_hook.url)
+ stub_request(:post, @project_hook_2.url)
end
it "executes multiple web hook" do
- @project_hook.should_receive(:execute).once
- @project_hook_2.should_receive(:execute).once
+ @project_hook.should_receive(:async_execute).once
+ @project_hook_2.should_receive(:async_execute).once
project.trigger_post_receive('oldrev', 'newrev', 'refs/heads/master', @user)
end