Sha256: 23ec57fa7e1d2c381b4a7303ca993cf7725decc3d982ac4ef36eb987fdd2a538
Contents?: true
Size: 965 Bytes
Versions: 3
Compression:
Stored size: 965 Bytes
Contents
shared_examples 'Unidom::Shopping::Concerns::AsItemShopper' do |model_attributes| context do shopping_item_1_attributes = { shopping_cart_id: SecureRandom.uuid, shopper_id: SecureRandom.uuid, shopper_type: 'Unidom::Shopping::Shopper::Mock', shopped_id: SecureRandom.uuid, shopped_type: 'Unidom::Shopping::Shopped::Mock', unit_price: 10.00, quantity: 1.00 } shopping_item_2_attributes = { shopping_cart_id: SecureRandom.uuid, shopper_id: SecureRandom.uuid, shopper_type: 'Unidom::Shopping::Shopper::Mock', shopped_id: SecureRandom.uuid, shopped_type: 'Unidom::Shopping::Shopped::Mock', unit_price: 12.00, quantity: 3.00 } it_behaves_like 'has_many', model_attributes, :shopping_items, Unidom::Shopping::ShoppingItem, [ shopping_item_1_attributes, shopping_item_2_attributes ] end end
Version data entries
3 entries across 3 versions & 1 rubygems