Sha256: d28cefef777cbaf70589e285e474af63cd1298f3577a2a8aeff8c2efae0ab21c
Contents?: true
Size: 343 Bytes
Versions: 6
Compression:
Stored size: 343 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :physical_box, class: "Physical::Box" do dimensions { [20, 15, 30].map { |d| Measured::Length(d, :cm) } } 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
6 entries across 6 versions & 1 rubygems