Sha256: 14510c528b13f784fc32b678bed75169abb600ba64b00e630e920d45c4bda0ce

Contents?: true

Size: 558 Bytes

Versions: 15

Compression:

Stored size: 558 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, 10001) { |i| i.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

15 entries across 15 versions & 1 rubygems

Version Path
physical-0.4.4 lib/physical/spec_support/factories/location_factory.rb
physical-0.4.3 lib/physical/spec_support/factories/location_factory.rb
physical-0.4.2 lib/physical/spec_support/factories/location_factory.rb
physical-0.4.1 lib/physical/spec_support/factories/location_factory.rb
physical-0.4.0 lib/physical/spec_support/factories/location_factory.rb
physical-0.3.3 lib/physical/spec_support/factories/location_factory.rb
physical-0.3.2 lib/physical/spec_support/factories/location_factory.rb
physical-0.3.1 lib/physical/spec_support/factories/location_factory.rb
physical-0.3.0 lib/physical/spec_support/factories/location_factory.rb
physical-0.2.0 lib/physical/spec_support/factories/location_factory.rb
physical-0.1.4 lib/physical/spec_support/factories/location_factory.rb
physical-0.1.3 lib/physical/spec_support/factories/location_factory.rb
physical-0.1.2 lib/physical/spec_support/factories/location_factory.rb
physical-0.1.1 lib/physical/spec_support/factories/location_factory.rb
physical-0.1.0 lib/physical/spec_support/factories/location_factory.rb