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/organizations/organizations_controller_spec.rb')
-rw-r--r--spec/requests/organizations/organizations_controller_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/requests/organizations/organizations_controller_spec.rb b/spec/requests/organizations/organizations_controller_spec.rb
index bd54b50de99..c3a328cf3f6 100644
--- a/spec/requests/organizations/organizations_controller_spec.rb
+++ b/spec/requests/organizations/organizations_controller_spec.rb
@@ -30,9 +30,13 @@ RSpec.describe Organizations::OrganizationsController, feature_category: :cell d
end
context 'when the feature flag `ui_for_organizations` is disabled' do
- it 'renders 404' do
- stub_feature_flags(ui_for_organizations: false)
+ let_it_be(:other_user) { create :user }
+
+ before do
+ stub_feature_flags(ui_for_organizations: other_user)
+ end
+ it 'renders 404' do
gitlab_request
expect(response).to have_gitlab_http_status(:not_found)