Sha256: 840739df467e97bb48624a78c16cc0d7eb776b997ade4e295c1e10f5ef3d4e7b

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

require 'factory_bot'

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

3 entries across 3 versions & 1 rubygems

Version Path
physical-0.3.1 lib/physical/spec_support/factories/package_factory.rb
physical-0.3.0 lib/physical/spec_support/factories/package_factory.rb
physical-0.2.0 lib/physical/spec_support/factories/package_factory.rb