From 4ef4a585324d7e3b50e525e3cd69549454da2def Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 18 Aug 2020 14:41:07 +0100 Subject: [PATCH] Merge two describe sections with same before method and call it what it is: guest checkout --- spec/features/consumer/shopping/checkout_spec.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/spec/features/consumer/shopping/checkout_spec.rb b/spec/features/consumer/shopping/checkout_spec.rb index a7afc3b9a6..bfad8b8f02 100644 --- a/spec/features/consumer/shopping/checkout_spec.rb +++ b/spec/features/consumer/shopping/checkout_spec.rb @@ -156,7 +156,7 @@ feature "As a consumer I want to check out my cart", js: true do end end - context "on the checkout page" do + context "guest checkout" do before do visit checkout_path checkout_as_guest @@ -259,13 +259,6 @@ feature "As a consumer I want to check out my cart", js: true do expect(page).to have_content "Local" end end - end - - context "on the checkout page with payments open" do - before do - visit checkout_path - checkout_as_guest - end it "shows all available payment methods" do expect(page).to have_content check_without_fee.name