Sha256: be1ac79b39261f4f3785b4cf6506a381d7ca103b2a164f047dae38bec8bd3b1b

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

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