Commit f822701f authored by Markus Koller's avatar Markus Koller

Merge branch 'fix-environment-spec' into 'master'

Use parent strategy for associations in factories - Environment Spec

See merge request gitlab-org/gitlab!41331
parents 33518a0e f1b5bfaf
...@@ -854,8 +854,8 @@ RSpec.describe Environment, :use_clean_rails_memory_store_caching do ...@@ -854,8 +854,8 @@ RSpec.describe Environment, :use_clean_rails_memory_store_caching do
end end
it 'overrides reactive_cache_limit_enabled? with a FF' do it 'overrides reactive_cache_limit_enabled? with a FF' do
environment_with_enabled_ff = FactoryBot.build(:environment) environment_with_enabled_ff = build(:environment, project: create(:project))
environment_with_disabled_ff = FactoryBot.build(:environment) environment_with_disabled_ff = build(:environment, project: create(:project))
stub_feature_flags(reactive_caching_limit_environment: environment_with_enabled_ff.project) stub_feature_flags(reactive_caching_limit_environment: environment_with_enabled_ff.project)
......
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