diff options
Diffstat (limited to 'spec/controllers/admin/runners_controller_spec.rb')
-rw-r--r-- | spec/controllers/admin/runners_controller_spec.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/controllers/admin/runners_controller_spec.rb b/spec/controllers/admin/runners_controller_spec.rb index b1a2d90589a..6fa8d2c61c1 100644 --- a/spec/controllers/admin/runners_controller_spec.rb +++ b/spec/controllers/admin/runners_controller_spec.rb @@ -41,18 +41,6 @@ RSpec.describe Admin::RunnersController, feature_category: :runner_fleet do expect(response).to have_gitlab_http_status(:ok) expect(response).to render_template(:new) end - - context 'when create_runner_workflow_for_admin is disabled' do - before do - stub_feature_flags(create_runner_workflow_for_admin: false) - end - - it 'returns :not_found' do - get :new - - expect(response).to have_gitlab_http_status(:not_found) - end - end end describe '#register' do @@ -78,20 +66,6 @@ RSpec.describe Admin::RunnersController, feature_category: :runner_fleet do expect(response).to have_gitlab_http_status(:not_found) end end - - context 'when create_runner_workflow_for_admin is disabled' do - let_it_be(:new_runner) { create(:ci_runner, registration_type: :authenticated_user) } - - before do - stub_feature_flags(create_runner_workflow_for_admin: false) - end - - it 'returns :not_found' do - register - - expect(response).to have_gitlab_http_status(:not_found) - end - end end describe '#edit' do |