Sha256: a8150f62725f0ecfdb7b0e5f386fcbb085ad7af09de6a0ebbc8d23344fec4c7a

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

Factory.sequence :email do |n|
  "user#{n}@example.com"
end

Factory.define :user do |user|
  user.email                 { Factory.next :email }
  user.password              { "password" }
  user.password_confirmation { "password" }
end

Factory.define :admin_user, :parent => :user do |admin|
  admin.role                 'admin'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blue_light_special-0.2.0 test/rails_root/test/factories/user.rb