Sha256: e49d83c83ea2e640aba478e88b497a5f0b80901609fbf9f7837d8a30228fb285

Contents?: true

Size: 309 Bytes

Versions: 5

Compression:

Stored size: 309 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 { 0.01 }
    initialize_with { new(attributes) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
physical-0.1.4 lib/physical/spec_support/factories/package_factory.rb
physical-0.1.3 lib/physical/spec_support/factories/package_factory.rb
physical-0.1.2 lib/physical/spec_support/factories/package_factory.rb
physical-0.1.1 lib/physical/spec_support/factories/package_factory.rb
physical-0.1.0 lib/physical/spec_support/factories/package_factory.rb