Sha256: eb647219296aade3373149db1e3febe28aea408e120e66bd52179dc06de47f46

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 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' }
    email { 'jane@company.com' }
    region { country.subregions.coded(region_code) }
    country { Carmen::Country.coded(country_code) }
    initialize_with { new(**attributes) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
physical-0.4.9 lib/physical/spec_support/factories/location_factory.rb