Sha256: 04e8099164f6f823f5b6f0ea1e915e7b0f211223c3f14ef28b2e913e6433f53a

Contents?: true

Size: 275 Bytes

Versions: 5

Compression:

Stored size: 275 Bytes

Contents

# frozen_string_literal: true

require 'factory_bot'

FactoryBot.define do
  factory :physical_box, class: "Physical::Box" do
    dimensions { [4, 5, 6] }
    dimension_unit { :dm }
    weight { 0.1 }
    weight_unit { :kg }
    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/box_factory.rb
physical-0.1.3 lib/physical/spec_support/factories/box_factory.rb
physical-0.1.2 lib/physical/spec_support/factories/box_factory.rb
physical-0.1.1 lib/physical/spec_support/factories/box_factory.rb
physical-0.1.0 lib/physical/spec_support/factories/box_factory.rb