Sha256: b74862497c3701949b3d662bbfd687ed0cd238e7c0f7ba084ff4ac3c3fd7de5e

Contents?: true

Size: 319 Bytes

Versions: 11

Compression:

Stored size: 319 Bytes

Contents

FactoryGirl.define do

  factory :fae_user, class: 'Fae::User' do
    sequence(:first_name) { |n| "Andy#{n}" }
    sequence(:last_name) { |n| "Doe#{n}" }
    email
    sequence(:password) { |n| "Passw0rd#{n}" }
    password_confirmation { password }
    active true

    association :role, factory: :fae_role
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fae-rails-1.6.0 spec/factories/fae/user_factory.rb
fae-rails-1.5.1 spec/factories/fae/user_factory.rb
fae-rails-1.5.0 spec/factories/fae/user_factory.rb
fae-rails-1.4.1 spec/factories/fae/user_factory.rb
fae-rails-1.4.0 spec/factories/fae/user_factory.rb
fae-rails-1.3.1 spec/factories/fae/user_factory.rb
fae-rails-1.3.0 spec/factories/fae/user_factory.rb
fae-rails-1.2.5 spec/factories/fae/user_factory.rb
fae-rails-1.2.4 spec/factories/fae/user_factory.rb
fae-rails-1.2.3 spec/factories/fae/user_factory.rb
fae-rails-1.2.2 spec/factories/fae/user_factory.rb