Sha256: ee2c7026b1ca4d084d3efbb23002796d4fa27d8694d4aa18a4e6d74712b8b159

Contents?: true

Size: 353 Bytes

Versions: 7

Compression:

Stored size: 353 Bytes

Contents

# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  factory :tb_checkout_cart_item, :class => 'TbCheckout::CartItem' do
    association :cart, :factory => :tb_checkout_cart
    association :item, :factory => :tb_checkout_basic_product
    item_description "My Item"
    item_price 9.99
    quantity 1
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tb_checkout-1.1.1 spec/factories/tb_checkout_cart_items.rb
tb_checkout-1.1.0 spec/factories/tb_checkout_cart_items.rb
tb_checkout-1.0.7 spec/factories/tb_checkout_cart_items.rb
tb_checkout-1.0.6 spec/factories/tb_checkout_cart_items.rb
tb_checkout-1.0.5 spec/factories/tb_checkout_cart_items.rb
tb_checkout-1.0.4 spec/factories/tb_checkout_cart_items.rb
tb_checkout-1.0.3 spec/factories/tb_checkout_cart_items.rb