spec/factories/test_model_factories.rb in ddr-models-2.3.2 vs spec/factories/test_model_factories.rb in ddr-models-2.4.0.rc1
- old
+ new
@@ -32,10 +32,10 @@
factory :test_parent do
title [ "DulHydra Test Parent Object" ]
sequence(:identifier) { |n| [ "testparent%05d" % n ] }
factory :test_parent_has_children do
- ignore do
+ transient do
child_count 3
end
after(:create) do |parent, evaluator|
FactoryGirl.create_list(:test_child, evaluator.child_count, :parent => parent)
end