rewriting some factories

This commit is contained in:
2019-01-13 10:01:22 +01:00
parent fea219ba92
commit 71d14c83ae
7 changed files with 46 additions and 6 deletions

View File

@@ -5,6 +5,16 @@ FactoryGirl.define do
parent nil
intern false
meetingtyp nil
# association :calentry, factory: :calentry
after(:build) do |c|
c.calentry=FactoryGirl.build(:calentry, typ: 2)
end
# trait :without_calentry do
# calentry nil
# end
end
end