Commit 88d9b0a1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets Committed by Luke Bennett

Merge branch 'fix-group-hooks-mock' into 'master'

Fix group hooks mock

Closes #4519

See merge request gitlab-org/gitlab-ee!3982

(cherry picked from commit 1b16ffac)

5800fe16 Fix group hooks mock
parent 78bf5863
......@@ -41,8 +41,10 @@ class Spinach::Features::GroupHooks < Spinach::FeatureSteps
end
step 'I click test hook button' do
WebMock.enable!
stub_request(:post, @hook.url).to_return(status: 200)
click_link 'Test'
WebMock.disable!
end
step 'I click test hook button with invalid URL' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment