Sha256: 9af8782cdb3c0b7643b8c0b175c946cbe078426f1b49d08eb32ea2fc6fab9c33
Contents?: true
Size: 334 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
punk-0.4.1 | spec/factories/identity.rb |