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.5.4 spec/factories/user.rb
noodall-form-builder-0.5.3 spec/factories/user.rb
noodall-form-builder-0.5.2 spec/factories/user.rb
noodall-form-builder-0.5.0 spec/factories/user.rb
noodall-form-builder-0.4.2 spec/factories/user.rb
noodall-form-builder-0.4.1 spec/factories/user.rb
noodall-form-builder-0.4.0 spec/factories/user.rb
noodall-0.2.0 lib/noodall/templates/spec/factories/user.rb
noodall-0.2.0.pre.2 lib/noodall/templates/spec/factories/user.rb
noodall-0.2.0.pre.1 lib/noodall/templates/spec/factories/user.rb
noodall-0.1.0 lib/noodall/templates/spec/factories/user.rb
noodall-form-builder-0.3.3 spec/factories/user.rb
noodall-form-builder-0.2.11 spec/factories/user.rb
noodall-form-builder-0.3.2 spec/factories/user.rb
noodall-form-builder-0.3.1 spec/factories/user.rb
noodall-form-builder-0.3.0 spec/factories/user.rb
noodall-form-builder-0.2.10 spec/factories/user.rb
noodall-form-builder-0.2.9 spec/factories/user.rb
noodall-form-builder-0.2.8 spec/factories/user.rb
noodall-form-builder-0.2.7 spec/factories/user.rb