diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-10-03 12:02:48 -0500 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-10-03 12:02:48 -0500 |
commit | bea4b0a8df71cd134077580abc5c63fd9767da53 (patch) | |
tree | 8e11b9c601be3c14c663fd002cb93ef906f3c450 | |
parent | 7a5c2d5eff6cd13f6971140294c395e877eafacf (diff) | |
download | gitlab-ce-bea4b0a8df71cd134077580abc5c63fd9767da53.tar.gz |
fix admin_hooks_spec
-rw-r--r-- | spec/features/admin/admin_hooks_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/admin/admin_hooks_spec.rb b/spec/features/admin/admin_hooks_spec.rb index 91f08dbad5d..5140889b4c6 100644 --- a/spec/features/admin/admin_hooks_spec.rb +++ b/spec/features/admin/admin_hooks_spec.rb @@ -62,14 +62,14 @@ describe 'Admin::Hooks', :js do it 'from hooks list page' do visit admin_hooks_path - expect { click_link 'Remove' }.to change(SystemHook, :count).by(-1) + expect { accept_confirm { find(:link, 'Remove').send_keys(:return) } }.to change(SystemHook, :count).by(-1) end it 'from hook edit page' do visit admin_hooks_path click_link 'Edit' - expect { click_link 'Remove' }.to change(SystemHook, :count).by(-1) + expect { accept_confirm { find(:link, 'Remove').send_keys(:return) } }.to change(SystemHook, :count).by(-1) end end end |