Sha256: 5c11d0c216209d1c88b85706e175180709b0245f6e561f05fa118d9a0e45dfc6

Contents?: true

Size: 518 Bytes

Versions: 6

Compression:

Stored size: 518 Bytes

Contents

shared_examples 'Unidom::Shopping::Concerns::AsShop' do |model_attributes|

  context do

    shopping_cart_1_attributes = {
      shopper_id:   SecureRandom.uuid,
      shopper_type: 'Unidom::Shopping::Shopper'
    }

    shopping_cart_2_attributes = {
      shopper_id:   SecureRandom.uuid,
      shopper_type: 'Unidom::Shopping::Shopper'
    }

    it_behaves_like 'has_many', model_attributes, :shopping_carts, Unidom::Shopping::ShoppingCart, [ shopping_cart_1_attributes, shopping_cart_2_attributes ]

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
unidom-shopping-2.0.1 lib/rspec/models/unidom/shopping/concerns/as_shop_shared_examples.rb
unidom-shopping-2.0 lib/rspec/models/unidom/shopping/concerns/as_shop_shared_examples.rb
unidom-shopping-1.7.8 lib/rspec/models/unidom/shopping/concerns/as_shop_shared_examples.rb
unidom-shopping-1.7.7 lib/rspec/models/unidom/shopping/concerns/as_shop_shared_examples.rb
unidom-shopping-1.7.6 lib/rspec/models/unidom/shopping/concerns/as_shop_shared_examples.rb
unidom-shopping-1.7.5 lib/rspec/models/unidom/shopping/concerns/as_shop_shared_examples.rb