Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
getfitter-core / spec / factories / core_events.rb
Size: Mime:
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