summaryrefslogtreecommitdiff
path: root/spec/features/admin
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-10-03 12:02:48 -0500
committerJose Ivan Vargas <jvargas@gitlab.com>2017-10-03 12:02:48 -0500
commitbea4b0a8df71cd134077580abc5c63fd9767da53 (patch)
tree8e11b9c601be3c14c663fd002cb93ef906f3c450 /spec/features/admin
parent7a5c2d5eff6cd13f6971140294c395e877eafacf (diff)
downloadgitlab-ce-bea4b0a8df71cd134077580abc5c63fd9767da53.tar.gz
fix admin_hooks_spec
Diffstat (limited to 'spec/features/admin')
-rw-r--r--spec/features/admin/admin_hooks_spec.rb4
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