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