Sha256: de1661541c296a2d895d5b3c8ee6b4ebddaa7a1a251ce6b279ffaa4de8687318

Contents?: true

Size: 387 Bytes

Versions: 7

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

require 'factory_bot'

FactoryBot.define do
  factory :physical_shipment, class: "Physical::Shipment" do
    origin { FactoryBot.build(:physical_location) }
    destination { FactoryBot.build(:physical_location) }
    packages { build_list(:physical_package, 2) }
    service_code { "usps_priority_mail" }
    initialize_with { new(attributes) }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
physical-0.3.1 lib/physical/spec_support/factories/shipment_factory.rb
physical-0.3.0 lib/physical/spec_support/factories/shipment_factory.rb
physical-0.2.0 lib/physical/spec_support/factories/shipment_factory.rb
physical-0.1.4 lib/physical/spec_support/factories/shipment_factory.rb
physical-0.1.3 lib/physical/spec_support/factories/shipment_factory.rb
physical-0.1.2 lib/physical/spec_support/factories/shipment_factory.rb
physical-0.1.1 lib/physical/spec_support/factories/shipment_factory.rb