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
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-04 15:35:38 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-04 15:37:39 +0400
commit21f4e5d3ac80c319592ecedb8bbf0c162841beb7 (patch)
treeb8eb1e801b3e96052ccaf2ccb7feb8cf443a807c /spec/requests/api/project_hooks_spec.rb
parent822dac87eccad5044e0e82fd671e8b71f21942a5 (diff)
ProjectHook API supports new event fields
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/requests/api/project_hooks_spec.rb')
-rw-r--r--spec/requests/api/project_hooks_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/project_hooks_spec.rb b/spec/requests/api/project_hooks_spec.rb
index c2a60abb482..beccd61866e 100644
--- a/spec/requests/api/project_hooks_spec.rb
+++ b/spec/requests/api/project_hooks_spec.rb
@@ -66,7 +66,7 @@ describe API::API, 'ProjectHooks' do
it "should add hook to project" do
expect {
post api("/projects/#{project.id}/hooks", user),
- url: "http://example.com"
+ url: "http://example.com", issues_events: true
}.to change {project.hooks.count}.by(1)
response.status.should == 201
end
@@ -85,7 +85,7 @@ describe API::API, 'ProjectHooks' do
describe "PUT /projects/:id/hooks/:hook_id" do
it "should update an existing project hook" do
put api("/projects/#{project.id}/hooks/#{hook.id}", user),
- url: 'http://example.org'
+ url: 'http://example.org', push_events: false
response.status.should == 200
json_response['url'].should == 'http://example.org'
end