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

Version Path
noodall-devise-0.2.1 spec/factories/user.rb
noodall-devise-0.1.8 spec/factories/user.rb
noodall-devise-0.1.7 spec/factories/user.rb
noodall-devise-0.1.6 spec/factories/user.rb
noodall-devise-0.1.5 spec/factories/user.rb
noodall-devise-0.1.4 spec/factories/user.rb
noodall-devise-0.1.3 spec/factories/user.rb
noodall-devise-0.1.2 spec/factories/user.rb
noodall-devise-0.1.1 spec/factories/user.rb
noodall-devise-0.1.0 spec/factories/user.rb
noodall-devise-0.0.1 spec/factories/user.rb