FactoryGirl.define do factory :event do name "Some Event" producer "Some Producer" association :organization association :venue contact_email { Faker::Internet.email } members_only false end factory :paid_event, :parent => :event do is_free false end factory :free_event, :parent => :event do is_free true end factory :venue do name "Venue Theater" address1 { Faker::Address.street_address } address2 { Faker::Address.secondary_address } city { Faker::Address.city } state { Faker::Address.state } zip { Faker::Address.zip_code } country "United States" time_zone "Mountain Time (US & Canada)" end factory :blank_event, :class => Event do name "Some Event" producer "Some Producer" contact_email { Faker::Internet.email } end end