Sha256: 3dec060d42da45ba1ad743924392239b46973e4a335c64ec38e6718e3ab0693d

Contents?: true

Size: 372 Bytes

Versions: 14

Compression:

Stored size: 372 Bytes

Contents

FactoryGirl.define do
  sequence :email do |n|
    "user#{n}@example.com"
  end

  factory :user do
    email
    password 'password'

    trait :with_forgotten_password do
      confirmation_token Clearance::Token.new
    end

    factory :user_with_optional_password, class: 'UserWithOptionalPassword' do
      password nil
      encrypted_password ''
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
clearance-1.16.0 spec/factories.rb
clearance-1.15.1 spec/factories.rb
clearance-1.15.0 spec/factories.rb
clearance-1.14.2 spec/factories.rb
clearance-1.14.1 spec/factories.rb
clearance-1.14.0 spec/factories.rb
clearance-1.13.0 spec/factories.rb
clearance-1.12.1 spec/factories.rb
clearance-1.12.0 spec/factories.rb
clearance-1.11.0 spec/factories.rb
clearance-1.10.1 spec/factories.rb
clearance-1.9.0 spec/factories.rb
clearance-1.8.1 spec/factories.rb
clearance-1.8.0 spec/factories.rb