Sha256: 4dc62435222e9dc898be2f0b60e56fb0ebc10f118ac59d5368d8be189ff94176
Contents?: true
Size: 334 Bytes
Versions: 7
Compression:
Stored size: 334 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :identity, class: 'PUNK::Identity' do to_create(&:save) user claim_type { ['email', 'phone'].sample } claim do case claim_type when 'email' Faker::Internet.email when 'phone' generate(:phone) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems