Commit 94dd4497 authored by Shinya Maeda's avatar Shinya Maeda

Merge branch 'improve-ffcontroller-spec-perf' into 'master'

Improve feature_flags_controller_spec Performance

See merge request gitlab-org/gitlab!33428
parents 04a60057 0b0f59c5
......@@ -7,15 +7,17 @@ RSpec.describe Projects::FeatureFlagsController do
include FeatureFlagHelpers
let_it_be(:project) { create(:project) }
let_it_be(:developer) { create(:user) }
let_it_be(:reporter) { create(:user) }
let(:user) { developer }
let(:developer) { create(:user) }
let(:reporter) { create(:user) }
let(:feature_enabled) { true }
before do
before_all do
project.add_developer(developer)
project.add_reporter(reporter)
end
before do
sign_in(user)
stub_licensed_features(feature_flags: feature_enabled)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment