Sha256: 171351551e9b2c5dec43c5bd6f87be1078f4ea6c87764cac682897b28cb0e8d2
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
require 'spec_helper' describe 'Orders' do let!(:product) { create(:product, :available_on => 1.day.ago) } stub_authorization! it 'should allow a user to add product to cart with ajax', :js => true do visit spree.root_path click_link product.name expect(find('.product-title').text).to eq(product.name) click_button 'Add To Cart' sleep(2) expect(find('#link-to-cart a').text).to eq("#{Spree.t(:cart).upcase}: (1) $#{product.price}") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_ajax_add_to_cart-2.0.0 | spec/requests/order_spec.rb |