Commit 96abbf02e3679cd883ea4ad80227f3187791da8a

Authored by jozefvaclavik
1 parent 3f2e0425

Update spec/requests/api/projects_spec.rb

Fixed mistake with updating project hook
Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
spec/requests/api/projects_spec.rb
... ... @@ -192,10 +192,9 @@ describe Gitlab::API do
192 192 describe "PUT /projects/:id/hooks/:hook_id" do
193 193 it "should update an existing project hook" do
194 194 put api("/projects/#{project.code}/hooks/#{hook.id}", user),
195   - code: 'updated code'
  195 + url: 'http://example.com'
196 196 response.status.should == 200
197 197 json_response['url'].should == 'http://example.com'
198   - hook.reload.content.should == 'updated code'
199 198 end
200 199 end
201 200  
... ...