diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-14 11:41:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-14 11:41:52 +0300 |
commit | 585826cb22ecea5998a2c2a4675735c94bdeedac (patch) | |
tree | 5b05f0b30d33cef48963609e8a18a4dff260eab3 /spec/controllers/import/bulk_imports_controller_spec.rb | |
parent | df221d036e5d0c6c0ee4d55b9c97f481ee05dee8 (diff) |
Add latest changes from gitlab-org/gitlab@16-6-stable-eev16.6.0-rc42
Diffstat (limited to 'spec/controllers/import/bulk_imports_controller_spec.rb')
-rw-r--r-- | spec/controllers/import/bulk_imports_controller_spec.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/controllers/import/bulk_imports_controller_spec.rb b/spec/controllers/import/bulk_imports_controller_spec.rb index c5e5aa03669..57c723829e3 100644 --- a/spec/controllers/import/bulk_imports_controller_spec.rb +++ b/spec/controllers/import/bulk_imports_controller_spec.rb @@ -300,6 +300,33 @@ RSpec.describe Import::BulkImportsController, feature_category: :importers do end end + describe 'GET details' do + subject(:request) { get :details } + + context 'when bulk_import_details_page feature flag is enabled' do + before do + stub_feature_flags(bulk_import_details_page: true) + request + end + + it 'responds with a 200 and shows the template', :aggregate_failures do + expect(response).to have_gitlab_http_status(:ok) + expect(response).to render_template(:details) + end + end + + context 'when bulk_import_details_page feature flag is disabled' do + before do + stub_feature_flags(bulk_import_details_page: false) + request + end + + it 'responds with a 404' do + expect(response).to have_gitlab_http_status(:not_found) + end + end + end + describe 'GET realtime_changes' do let_it_be(:bulk_import) { create(:bulk_import, :created, user: user) } |