Sha256: 326b69bb7a4364060373d28b3cc092aa54916abef79de963bdb6b65a68957c3e
Contents?: true
Size: 428 Bytes
Versions: 11
Compression:
Stored size: 428 Bytes
Contents
Factory.define :user do |user| user.email { |u| Faker::Internet.email(u.name) } user.name { Faker::Name.name } user.password { "password" } user.password_confirmation { "password" } end Factory.define :website_editor, :parent => :user do |user| user.groups [ "editor" ] end Factory.define :website_administrator, :parent => :user do |user| user.groups [ "admin" ] end
Version data entries
11 entries across 11 versions & 1 rubygems