Commit a46af619 authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'fix_container_expiration_policy_preloaded_spec' into 'master'

Fix order-dependent spec

Closes #196398

See merge request gitlab-org/gitlab!22851
parents 6582f491 7003d2c6
...@@ -43,8 +43,7 @@ RSpec.describe ContainerExpirationPolicy, type: :model do ...@@ -43,8 +43,7 @@ RSpec.describe ContainerExpirationPolicy, type: :model do
subject { described_class.preloaded } subject { described_class.preloaded }
before do before do
# container_expiration_policies are created for every new project create_list(:container_expiration_policy, 3)
create_list(:project, 3)
end end
it 'preloads the associations' do it 'preloads the associations' do
......
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