Sha256: 41a356f1703b00710debc9971291a832aea483567c4dfe623fe7b8c9e4cf1881

Contents?: true

Size: 429 Bytes

Versions: 45

Compression:

Stored size: 429 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

45 entries across 45 versions & 2 rubygems

Version Path
noodall-form-builder-0.2.5 spec/factories/user.rb
noodall-form-builder-0.2.4 spec/factories/user.rb
noodall-form-builder-0.2.3 spec/factories/user.rb
noodall-form-builder-0.2.2 spec/factories/user.rb
noodall-form-builder-0.2.1 spec/factories/user.rb
noodall-form-builder-0.2.0 spec/factories/user.rb
noodall-form-builder-0.1.3 spec/factories/user.rb
noodall-form-builder-0.1.2 spec/factories/user.rb
noodall-form-builder-0.1.1 spec/factories/user.rb
noodall-form-builder-0.1.0 spec/factories/user.rb
noodall-form-builder-0.0.13 spec/factories/user.rb
noodall-form-builder-0.0.11 spec/factories/user.rb
noodall-0.0.5 lib/noodall/templates/spec/factories/user.rb
noodall-form-builder-0.0.10 spec/factories/user.rb
noodall-form-builder-0.0.9 spec/factories/user.rb
noodall-form-builder-0.0.8 spec/factories/user.rb
noodall-form-builder-0.0.7 spec/factories/user.rb
noodall-form-builder-0.0.6 spec/factories/user.rb
noodall-form-builder-0.0.5 spec/factories/user.rb
noodall-form-builder-0.0.4 spec/factories/user.rb