Sha256: 96dcb71c120789332a43db68ea00592ec6c87987a70f9a287078332a65820cc7

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :physical_location, class: 'Physical::Location' do
    transient do
      country_code { 'US' }
      region_code { 'IL' }
    end

    name { 'Jane Doe' }
    company_name { 'Company' }
    address1 { '11 Lovely Street' }
    address2 { 'South' }
    city { 'Herndon' }
    sequence(:zip, 10_001, &:to_s)
    phone { '555-555-0199' }
    region { country.subregions.coded(region_code) }
    country { Carmen::Country.coded(country_code) }
    initialize_with { new(**attributes) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
physical-0.4.8 lib/physical/spec_support/factories/location_factory.rb
physical-0.4.7 lib/physical/spec_support/factories/location_factory.rb
physical-0.4.5 lib/physical/spec_support/factories/location_factory.rb