From 45ccc5610c9afec64de3c4894789896ee2d5c48d Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 15 Jun 2020 00:08:43 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/controllers/groups_controller_spec.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'spec/controllers/groups_controller_spec.rb') 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 -- cgit v1.2.3