spec/resources/factories/data_model/relationship_factory.rb in moblues-0.1.0 vs spec/resources/factories/data_model/relationship_factory.rb in moblues-0.2.0

- old
+ new

@@ -7,8 +7,23 @@ name 'relationship' destination_entity 'DestinationEntity' to_many true ordered true + trait :single do + to_many false + ordered false + end + + trait :to_many do + to_many true + ordered false + end + + trait :to_many_ordered do + to_many true + ordered true + end + initialize_with { new(name: name, destination_entity: destination_entity, to_many: to_many, ordered: ordered) } end end