diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-24 09:07:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-24 09:07:33 +0300 |
commit | 9933e246c88dfa3d62eb0bab258539711663b904 (patch) | |
tree | a8222689407ac2f5d69106bfa13a1d5812cd3d58 /spec/controllers | |
parent | c37c3ec359084406ca67e175ef66b8c186db6636 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects_controller_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb index b652aba1fff..d1c4cbbe591 100644 --- a/spec/controllers/projects_controller_spec.rb +++ b/spec/controllers/projects_controller_spec.rb @@ -1541,7 +1541,7 @@ RSpec.describe ProjectsController, feature_category: :projects do it 'returns 302' do post action, params: { namespace_id: project.namespace, id: project } - expect(response).to have_gitlab_http_status(:found) + expect(response).to redirect_to(edit_project_path(project, anchor: 'js-project-advanced-settings')) end context 'when the project storage_size exceeds the application setting max_export_size' do @@ -1551,7 +1551,7 @@ RSpec.describe ProjectsController, feature_category: :projects do post action, params: { namespace_id: project.namespace, id: project } - expect(response).to have_gitlab_http_status(:found) + expect(response).to redirect_to(edit_project_path(project, anchor: 'js-project-advanced-settings')) expect(flash[:alert]).to include('The project size exceeds the export limit.') end end @@ -1563,7 +1563,7 @@ RSpec.describe ProjectsController, feature_category: :projects do post action, params: { namespace_id: project.namespace, id: project } - expect(response).to have_gitlab_http_status(:found) + expect(response).to redirect_to(edit_project_path(project, anchor: 'js-project-advanced-settings')) expect(flash[:alert]).to be_nil end end @@ -1574,7 +1574,7 @@ RSpec.describe ProjectsController, feature_category: :projects do post action, params: { namespace_id: project.namespace, id: project } - expect(response).to have_gitlab_http_status(:found) + expect(response).to redirect_to(edit_project_path(project, anchor: 'js-project-advanced-settings')) expect(flash[:alert]).to be_nil end end @@ -1617,7 +1617,7 @@ RSpec.describe ProjectsController, feature_category: :projects do get action, params: { namespace_id: project.namespace, id: project } expect(flash[:alert]).to include('file containing the export is not available yet') - expect(response).to have_gitlab_http_status(:found) + expect(response).to redirect_to(edit_project_path(project, anchor: 'js-project-advanced-settings')) end end @@ -1696,7 +1696,7 @@ RSpec.describe ProjectsController, feature_category: :projects do it 'returns 302' do post action, params: { namespace_id: project.namespace, id: project } - expect(response).to have_gitlab_http_status(:found) + expect(response).to redirect_to(edit_project_path(project, anchor: 'js-project-advanced-settings')) end end |