diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-15 03:08:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-15 03:08:43 +0300 |
commit | 45ccc5610c9afec64de3c4894789896ee2d5c48d (patch) | |
tree | 544b5e40167eca28e075cec24d4736283620b88e /spec/controllers/groups_controller_spec.rb | |
parent | 6b4c082fc8f266aa796595103e6c5f6ddb199280 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers/groups_controller_spec.rb')
-rw-r--r-- | spec/controllers/groups_controller_spec.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb index e2e5e07fba0..dce7105c073 100644 --- a/spec/controllers/groups_controller_spec.rb +++ b/spec/controllers/groups_controller_spec.rb @@ -66,7 +66,19 @@ RSpec.describe GroupsController do subject { get :show, params: { id: group.to_param }, format: format } - it_behaves_like 'details view' + context 'when the group is not importing' do + it_behaves_like 'details view' + end + + context 'when the group is importing' do + before do + create(:group_import_state, group: group) + end + + it 'redirects to the import status page' do + expect(subject).to redirect_to group_import_path(group) + end + end end describe 'GET #details' do |