Sha256: 8a9a04e9353e2f10a54de199610732e63e836c25c8304856da3e1131c3f8cbf3

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 Bytes

Contents

# frozen_string_literal: true

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

    name { 'Jane Doe' }
    company_name { 'Company' }
    address1 { '11 Lovely Street' }
    address2 { 'Suite 100' }
    city { 'Herndon' }
    zip { '20170' }
    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

2 entries across 2 versions & 1 rubygems

Version Path
physical-0.5.1 lib/physical/spec_support/factories/location_factory.rb
physical-0.5.0 lib/physical/spec_support/factories/location_factory.rb