diff options
Diffstat (limited to 'spec/factories/terraform/state.rb')
-rw-r--r-- | spec/factories/terraform/state.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/terraform/state.rb b/spec/factories/terraform/state.rb index d80c1315e28..e5cea9e252e 100644 --- a/spec/factories/terraform/state.rb +++ b/spec/factories/terraform/state.rb @@ -2,7 +2,7 @@ FactoryBot.define do factory :terraform_state, class: 'Terraform::State' do - project { create(:project) } + project { association(:project) } sequence(:name) { |n| "state-#{n}" } @@ -14,7 +14,7 @@ FactoryBot.define do trait :locked do sequence(:lock_xid) { |n| "lock-#{n}" } locked_at { Time.current } - locked_by_user { create(:user) } + locked_by_user { association(:user) } end trait :with_version do |