Sha256: 3c5c1fd0b7952754678dc5c7a51b94f027f929ef1c8f9788762c93b400f8663e
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 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) } pallets { build_list(:physical_pallet, 1) } packages { build_list(:physical_package, 2) } service_code { "usps_priority_mail" } 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/shipment_factory.rb |