Update spec/requests/api/projects_spec.rb
Fixed mistake with updating project hook
This commit is contained in:
parent
3f2e04254f
commit
96abbf02e3
|
@ -192,10 +192,9 @@ describe Gitlab::API do
|
||||||
describe "PUT /projects/:id/hooks/:hook_id" do
|
describe "PUT /projects/:id/hooks/:hook_id" do
|
||||||
it "should update an existing project hook" do
|
it "should update an existing project hook" do
|
||||||
put api("/projects/#{project.code}/hooks/#{hook.id}", user),
|
put api("/projects/#{project.code}/hooks/#{hook.id}", user),
|
||||||
code: 'updated code'
|
url: 'http://example.com'
|
||||||
response.status.should == 200
|
response.status.should == 200
|
||||||
json_response['url'].should == 'http://example.com'
|
json_response['url'].should == 'http://example.com'
|
||||||
hook.reload.content.should == 'updated code'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue