diff options
Diffstat (limited to 'spec/requests/organizations/organizations_controller_spec.rb')
-rw-r--r-- | spec/requests/organizations/organizations_controller_spec.rb | 8 |
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) |