Sha256: 253a8b8bc21104c58a9704f1545c839af31925a3e19da888091b3183bc6bb0f2

Contents?: true

Size: 304 Bytes

Versions: 20

Compression:

Stored size: 304 Bytes

Contents

FactoryBot.define do
  factory :user do
    email { Array.new(10){[*"A".."Z", *"0".."9"].sample}.join + '@example.com' }
    password { "password" }
    password_confirmation { "password" }
  end

  factory :confirmed_user, parent: :user do
    after(:build) { |user| user.skip_confirmation! }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
activity_notification-2.3.3 spec/factories/users.rb
activity_notification-2.3.2 spec/factories/users.rb
activity_notification-2.3.1 spec/factories/users.rb
activity_notification-2.3.0 spec/factories/users.rb
activity_notification-2.2.4 spec/factories/users.rb
activity_notification-2.2.3 spec/factories/users.rb
activity_notification-2.2.2 spec/factories/users.rb
activity_notification-2.2.1 spec/factories/users.rb
activity_notification-2.2.0 spec/factories/users.rb
activity_notification-2.1.4 spec/factories/users.rb
activity_notification-2.1.3 spec/factories/users.rb
activity_notification-2.1.2 spec/factories/users.rb
activity_notification-2.1.1 spec/factories/users.rb
activity_notification-2.1.0 spec/factories/users.rb
activity_notification-2.0.0 spec/factories/users.rb
activity_notification-1.7.1 spec/factories/users.rb
activity_notification-1.7.0 spec/factories/users.rb
activity_notification-1.6.1 spec/factories/users.rb
activity_notification-1.6.0 spec/factories/users.rb
activity_notification-1.5.1 spec/factories/users.rb