Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/groups/crm/organizations_controller_spec.rb')
-rw-r--r--spec/requests/groups/crm/organizations_controller_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/requests/groups/crm/organizations_controller_spec.rb b/spec/requests/groups/crm/organizations_controller_spec.rb
index f38300c3c5b..37ffac71772 100644
--- a/spec/requests/groups/crm/organizations_controller_spec.rb
+++ b/spec/requests/groups/crm/organizations_controller_spec.rb
@@ -49,6 +49,12 @@ RSpec.describe Groups::Crm::OrganizationsController do
it_behaves_like 'response with 404 status'
end
+
+ context 'when subgroup' do
+ let(:group) { create(:group, :private, :crm_enabled, parent: create(:group)) }
+
+ it_behaves_like 'response with 404 status'
+ end
end
context 'with unauthorized user' do