Sha256: d3ec0978f0a1f824fb224b78b946f8ce70e5fd5469f47cc578a6153a5eae5e1b

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

require 'factory_bot'
require_relative 'box_factory'
require_relative 'item_factory'

FactoryBot.define do
  factory :physical_package, class: "Physical::Package" do
    container { FactoryBot.build(:physical_box) }
    items { build_list(:physical_item, 2) }
    void_fill_density { Measured::Weight(0.01, :g) }
    initialize_with { new(attributes) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
physical-0.3.3 lib/physical/spec_support/factories/package_factory.rb
physical-0.3.2 lib/physical/spec_support/factories/package_factory.rb