Sha256: cc535ad5d270c87c33abca8986dcab72950d02f8082a9ecb9cf20d74e3defeda
Contents?: true
Size: 493 Bytes
Versions: 1
Compression:
Stored size: 493 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) } trait :freight do structures { build_list(:physical_structure, 1) } service_code { "tforce_freight" } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
physical-0.5.1 | lib/physical/spec_support/factories/shipment_factory.rb |