Sha256: 00239193afba04835d44ef3995e8f43c3ea5a75e1a87bb7d55af90e0e57559d7
Contents?: true
Size: 361 Bytes
Versions: 5
Compression:
Stored size: 361 Bytes
Contents
# frozen_string_literal: true require 'factory_bot' FactoryBot.define do factory :physical_box, class: "Physical::Box" do dimensions { [4, 5, 6].map { |d| Measured::Length(d, :dm) } } inner_dimensions { dimensions.map { |d| d - Measured::Length(1, :cm) } } weight { Measured::Weight(0.1, :kg) } initialize_with { new(attributes) } end end
Version data entries
5 entries across 5 versions & 1 rubygems