Repository URL to install this package:
|
Version:
4.0.0.pre.3 ▾
|
FactoryGirl.define do
factory :core_event, class: 'Core::Event' do
name { "#{Faker::Lorem.word}".capitalize }
description { Faker::Lorem.paragraph }
start_time { Faker::Time.forward(1, :morning) }
end_time { Faker::Time.forward(2, :afternoon) }
price { Faker::Commerce.price * 100 }
booking_url { Faker::Internet.url }
room { Faker::Lorem.word }
availability 'spaces'
activity_types ['yoga']
association :organisation, factory: :core_organisation
association :venue, factory: :core_venue
end
end