Sha256: 1e253e2863d200fd0ed92e92692793d11068708b01a6008b8f9333bf85d9a4b8

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

Factory.sequence :name do |n|
  "Event #{n}"
end

Factory.define :event do |event|
  event.name                 { Factory.next :name }
  event.description          { "Just some testing event" }
end

Factory.define :special_event, :parent => :event do |event|
  event.name { "special" }
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
dcs-eventable-0.0.8 generators/eventable/templates/factories.rb
dcs-eventable-0.0.8 test/rails_root/test/factories/eventable.rb