diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-06-21 10:38:59 +0200 |
---|---|---|
committer | Francisco Javier López <fjlopez@gitlab.com> | 2018-07-23 12:05:48 -0400 |
commit | 2408519e08084f6d81f2628eba6868910ee7fcfa (patch) | |
tree | d6e20c0e554abd7857319474158382e8442cd4b8 /spec/routing/project_routing_spec.rb | |
parent | 65f27de7a2415bc50bebdb5f0cc8613fe87f8daf (diff) | |
download | gitlab-ce-2408519e08084f6d81f2628eba6868910ee7fcfa.tar.gz |
Changing the hook test action to use POST
Diffstat (limited to 'spec/routing/project_routing_spec.rb')
-rw-r--r-- | spec/routing/project_routing_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb index 56d93095a85..70a7707826e 100644 --- a/spec/routing/project_routing_spec.rb +++ b/spec/routing/project_routing_spec.rb @@ -389,7 +389,7 @@ describe 'project routing' do # DELETE /:project_id/hooks/:id(.:format) hooks#destroy describe Projects::HooksController, 'routing' do it 'to #test' do - expect(get('/gitlab/gitlabhq/hooks/1/test')).to route_to('projects/hooks#test', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') + expect(post('/gitlab/gitlabhq/hooks/1/test')).to route_to('projects/hooks#test', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') end it_behaves_like 'RESTful project resources' do |