diff --git a/spec/features/admin/admin_hooks_spec.rb b/spec/features/admin/admin_hooks_spec.rb index 197e6cd07c46eb338161d540d88909f5a7402618..725e603d1e368f6228d439a2dd827e7ee2cffc6e 100644 --- a/spec/features/admin/admin_hooks_spec.rb +++ b/spec/features/admin/admin_hooks_spec.rb @@ -119,14 +119,6 @@ describe 'Admin::Hooks' do WebMock.stub_request(:post, system_hook.url) end - it 'fails if the user does not have any repository with a merge request' do - visit admin_hooks_path - find('.hook-test-button.dropdown').click - click_link 'Merge requests events' - - expect(page).to have_content 'Ensure one of your projects has merge requests.' - end - it 'succeeds if the user has a repository with a merge request' do project = create(:project, :repository) create(:project_member, user: user, project: project)