Sha256: a9a84fc2549fac00b394b3dd8c7fd96d146fdadb76ee6914417546a066c1ae4f
Contents?: true
Size: 786 Bytes
Versions: 6
Compression:
Stored size: 786 Bytes
Contents
FactoryGirl.define do factory :school, class: Gaku::School do name { FFaker::Education.school_generic_name } slogan 'Draw the individual potencial' description 'Nagoya University description' founded Date.new(1950, 4, 1) principal 'Hajime Togari' factory :invalid_school do name nil end end factory :school_with_one_contact, parent: :school do after(:create) do |school| create(:contact_creation, contactable: school.campuses.first) end end factory :school_with_two_contacts, parent: :school do after(:create) do |school| create(:contact_creation, contactable: school.campuses.first) create(:contact_creation, contactable: school.campuses.first) end end trait :master do primary true end end
Version data entries
6 entries across 6 versions & 1 rubygems