Sha256: 4d173774ed264f7f254fc62dd379cdc7debbb353c66ed3b6c2a694c72eca00da

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

Factory.sequence :name do |n|
  "Jane #{n}"
end
Factory.sequence :title do |n|
  "post #{n}"
end

Factory.define :post do |f|
  f.title   { Factory.next :title }
  f.body    { 'Some mind blowing text here' }
end

Factory.define :user do |f|
  f.name    { Factory.next :name }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gsterndale-warrant-0.2.0 test/rails_root/test/factories/warrant.rb
gsterndale-warrant-0.3.0 test/rails_root/test/factories/warrant.rb