mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
Updated tests
This commit is contained in:
@@ -48,12 +48,12 @@ class Spinach::Features::ProjectHooks < Spinach::FeatureSteps
|
||||
|
||||
step 'I click test hook button' do
|
||||
stub_request(:post, @hook.url).to_return(status: 200)
|
||||
click_link 'Test Hook'
|
||||
click_link 'Test'
|
||||
end
|
||||
|
||||
step 'I click test hook button with invalid URL' do
|
||||
stub_request(:post, @hook.url).to_raise(SocketError)
|
||||
click_link 'Test Hook'
|
||||
click_link 'Test'
|
||||
end
|
||||
|
||||
step 'hook should be triggered' do
|
||||
|
||||
Reference in New Issue
Block a user