Sha256: ce2d6d4b474aaf4190e9541467cd83a8fb14ffa546f51da2619545ec3adee7e0

Contents?: true

Size: 270 Bytes

Versions: 18

Compression:

Stored size: 270 Bytes

Contents

FactoryGirl.define do
  factory :event do |f|
    f.sequence(:name){|n| "event_#{n}"}
    f.start_at{Time.zone.now}
    f.end_at{1.hour.from_now}
    f.library_id{FactoryGirl.create(:library).id}
    f.event_category_id{FactoryGirl.create(:event_category).id}
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
enju_event-0.2.1 spec/factories/event.rb
enju_event-0.2.0 spec/factories/event.rb
enju_event-0.2.0.beta.4 spec/factories/event.rb
enju_event-0.2.0.beta.3 spec/factories/event.rb
enju_event-0.2.0.beta.2 spec/factories/event.rb
enju_event-0.2.0.beta.1 spec/factories/event.rb
enju_event-0.1.19 spec/factories/event.rb
enju_event-0.1.18 spec/factories/event.rb
enju_event-0.1.17 spec/factories/event.rb
enju_event-0.1.17.pre27 spec/factories/event.rb
enju_event-0.1.17.pre26 spec/factories/event.rb
enju_event-0.1.17.pre25 spec/factories/event.rb
enju_event-0.1.17.pre24 spec/factories/event.rb
enju_event-0.1.17.pre23 spec/factories/event.rb
enju_event-0.1.17.pre22 spec/factories/event.rb
enju_event-0.1.17.pre21 spec/factories/event.rb
enju_event-0.1.17.pre20 spec/factories/event.rb
enju_event-0.1.17.pre19 spec/factories/event.rb