提交 96abbf02 编写于 作者: J jozefvaclavik

Update spec/requests/api/projects_spec.rb

Fixed mistake with updating project hook
上级 3f2e0425
......@@ -192,10 +192,9 @@ describe Gitlab::API do
describe "PUT /projects/:id/hooks/:hook_id" do
it "should update an existing project hook" do
put api("/projects/#{project.code}/hooks/#{hook.id}", user),
code: 'updated code'
url: 'http://example.com'
response.status.should == 200
json_response['url'].should == 'http://example.com'
hook.reload.content.should == 'updated code'
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册