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