Skip to content

Commit

Permalink
fixed tests for fair label
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Kress committed Oct 26, 2015
1 parent 98871ed commit 96e9dcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/factories/line_items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

0 comments on commit 96e9dcb

Please sign in to comment.