Sha256: b7e7c4df97ed7ddd1f113f8cad1ed203786c1d3f442395766519a57a9afffecb
Contents?: true
Size: 832 Bytes
Versions: 5
Compression:
Stored size: 832 Bytes
Contents
require 'rspec/models/unidom/inventory/concerns/as_inventory_item_shared_examples' describe Unidom::Inventory::GroupedInventoryItem, type: :model do before :each do end after :each do end context do model_attributes = { stored_id: SecureRandom.uuid, stored_type: 'Unidom::Inventory::Stored::Mock', store_id: SecureRandom.uuid, store_type: 'Unidom::Inventory::Store::Mock', lot_id: SecureRandom.uuid, quantity: 120.000000 } it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes it_behaves_like 'validates numericality', model_attributes, :quantity, range: 0..1_000_000_000, minimum_inclusive: true, maximum_inclusive: true it_behaves_like 'Unidom::Inventory::Concerns::AsInventoryItem', model_attributes end end
Version data entries
5 entries across 5 versions & 1 rubygems