Sha256: abf40f4bf42ead62a6e92f8f9b0b8eed3cad9d3164619a6be5f171e5ad6eb66d

Contents?: true

Size: 711 Bytes

Versions: 5

Compression:

Stored size: 711 Bytes

Contents

shared_examples 'Unidom::Order::Concerns::AsOrderPlacer' do |model_attributes|

  context do

    order_1_attributes = {
      taker_id:         SecureRandom.uuid,
      taker_type:       'Unidom::Order::Taker::Mock',
      number:           SecureRandom.hex(6),
      purchase_amount:  10.00,
      aggregate_amount: 10.00
    }

    order_1_attributes = {
      taker_id:         SecureRandom.uuid,
      taker_type:       'Unidom::Order::Taker::Mock',
      number:           SecureRandom.hex(6),
      purchase_amount:  20.00,
      aggregate_amount: 20.00
    }

    it_behaves_like 'has_many', model_attributes, :placed_orders, Unidom::Order::Order, [ order_1_attributes, order_1_attributes ]

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
unidom-order-2.0.1 lib/rspec/models/unidom/order/concerns/as_order_placer_shared_examples.rb
unidom-order-2.0 lib/rspec/models/unidom/order/concerns/as_order_placer_shared_examples.rb
unidom-order-1.5.9 lib/rspec/models/unidom/order/concerns/as_order_placer_shared_examples.rb
unidom-order-1.5.8 lib/rspec/models/unidom/order/concerns/as_order_placer_shared_examples.rb
unidom-order-1.5.7 lib/rspec/models/unidom/order/concerns/as_order_placer_shared_examples.rb