diff --git a/test/factories/line_items.rb b/test/factories/line_items.rb index fdb9c6fd17..6bc1e51030 100644 --- a/test/factories/line_items.rb +++ b/test/factories/line_items.rb @@ -11,6 +11,7 @@ factory :line_item_with_conventional_article, traits: [:with_conventional_article] factory :line_item_with_fair_article, traits: [:with_fair_article] factory :line_item_with_private_user, traits: [:with_private_user] + factory :line_item_with_legal_entity, traits: [:with_legal_entity] trait :with_conventional_article do association :article, factory: [:article, :with_legal_entity], condition: 'new' @@ -23,5 +24,9 @@ trait :with_private_user do association :article, factory: [:article, :with_private_user], condition: 'new' end + + trait :with_legal_entity do + association :article, factory: [:article, :with_legal_entity], condition: 'new' + end end end