From e08f0a5feb03ee5a45e69101765174bf77bfd026 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Wed, 30 Apr 2014 10:06:46 +1000 Subject: [PATCH] Removing a feature spec BECAUSE we've got the same tests in the controller spec baby --- .../shopping/checkout_plumbing_spec.rb | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 spec/features/consumer/shopping/checkout_plumbing_spec.rb diff --git a/spec/features/consumer/shopping/checkout_plumbing_spec.rb b/spec/features/consumer/shopping/checkout_plumbing_spec.rb deleted file mode 100644 index a635ea14c9..0000000000 --- a/spec/features/consumer/shopping/checkout_plumbing_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -require 'spec_helper' - - -feature "As a consumer I want to check out my cart", js: true do - include AuthenticationWorkflow - include ShopWorkflow - include WebHelper - include UIComponentHelper - - let(:distributor) { create(:distributor_enterprise) } - let(:supplier) { create(:supplier_enterprise) } - let(:order_cycle) { create(:order_cycle, distributors: [distributor], coordinator: create(:distributor_enterprise)) } - let(:product) { create(:simple_product, supplier: supplier) } - let(:order) { Spree::Order.last } - - before do - order_cycle # force this to load - create_enterprise_group_for distributor - end - describe "Attempting to access checkout without meeting the preconditions" do - it "redirects to the homepage if no distributor is selected" do - visit "/shop/checkout" - current_path.should == root_path - end - - it "redirects to the shop page if we have a distributor but no order cycle selected" do - select_distributor - visit "/shop/checkout" - current_path.should == shop_path - end - - it "redirects to the shop page if the current order is empty" do - select_distributor - select_order_cycle - visit "/shop/checkout" - current_path.should == shop_path - end - - it "renders checkout if we have distributor and order cycle selected" do - select_distributor - select_order_cycle - add_product_to_cart - visit "/shop/checkout" - current_path.should == "/shop/checkout" - end - end -end