Sha256: cb160742036d94118f3fb496371f7a38cc1c2b29da84adae9576b228d2953945

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

module ShoppingCart
  RSpec.describe 'Empty cart' do
    before do
      login_as user, scope: :user
      visit shopping_cart.root_path
      within '.edit_order' do
        click_link I18n.t('cart.delete_order')
      end
    end

    let(:user) { create :user_with_orders }

    it 'should delete current order' do
      expect(page).to have_content I18n.t('cart.empty_cart')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopping-cart-0.1.2 spec/features/shopping_cart/empty_cart_spec.rb
shopping-cart-0.1.1 spec/features/shopping_cart/empty_cart_spec.rb
shopping-cart-0.1.0 spec/features/shopping_cart/empty_cart_spec.rb