rewriting some factories
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user