Sha256: c42780c429bb2c893615ec2bff96063cd422adc74f114b91169c4a9e3022b5eb

Contents?: true

Size: 501 Bytes

Versions: 9

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

FactoryGirl.define do
  factory :user, class: User do
    email 'test@test.com'
    password '123456Qwerty'
    password_confirmation '123456Qwerty'
  end

  factory :regular_user, class: User do
    email 'regular_user@test.com'
    password 'password'
    password_confirmation 'password'
    role 'regular_user'
  end

  factory :admin, class: User do
    email 'admin@test.com'
    password 'password'
    password_confirmation 'password'
    role 'admin'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_workflow-0.7.3 spec/factories/user.rb
rails_workflow-0.7.2 spec/factories/user.rb
rails_workflow-0.7.1 spec/factories/user.rb
rails_workflow-0.7.0 spec/factories/user.rb
rails_workflow-0.4.4 spec/factories/user.rb
rails_workflow-0.4.3 spec/factories/user.rb
rails_workflow-0.4.2 spec/factories/user.rb
rails_workflow-0.4.1 spec/factories/user.rb
rails_workflow-0.4.0 spec/factories/user.rb