Commit 7003d2c6 authored by Thong Kuah's avatar Thong Kuah

Fix order-dependent spec

This was failing becuase container_expiration_policy was not created for
projects sometimes.

Rather than rely on that mechanismm create container_expiration_policy
directly for this spec
parent ee46dd70
......@@ -43,8 +43,7 @@ RSpec.describe ContainerExpirationPolicy, type: :model do
subject { described_class.preloaded }
before do
# container_expiration_policies are created for every new project
create_list(:project, 3)
create_list(:container_expiration_policy, 3)
end
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