diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-26 00:07:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-26 00:07:30 +0300 |
commit | 453fb3ab5c9b08fb04b9de8205e971e2769b9224 (patch) | |
tree | 797a08adfef39a2e353349b14146aa12522eec23 /spec/controllers | |
parent | 99a6475e08172adc2c300273e81fccb04b0a8b0e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/admin/topics_controller_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/controllers/admin/topics_controller_spec.rb b/spec/controllers/admin/topics_controller_spec.rb index e640f8bb7ec..fbac9de584b 100644 --- a/spec/controllers/admin/topics_controller_spec.rb +++ b/spec/controllers/admin/topics_controller_spec.rb @@ -102,6 +102,12 @@ RSpec.describe Admin::TopicsController do expect(errors).to contain_exactly(errors.full_message(:title, I18n.t('errors.messages.blank'))) end + it 'redirects to the topics list' do + post :create, params: { projects_topic: { name: 'test-redirect', title: "Test redirect" } } + + expect(response).to redirect_to(admin_topics_path) + end + context 'as a normal user' do before do sign_in(user) |