From b71f7eec3d0c70cc52c6e8d963c7bc34b133f583 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Tue, 13 Aug 2013 09:11:12 +1000 Subject: [PATCH] Fix spec for charges by adjustment not shipping method --- spec/features/consumer/checkout_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/features/consumer/checkout_spec.rb b/spec/features/consumer/checkout_spec.rb index 8079e14748..adac695bf5 100644 --- a/spec/features/consumer/checkout_spec.rb +++ b/spec/features/consumer/checkout_spec.rb @@ -197,7 +197,9 @@ feature %q{ click_checkout_continue_button # -- Checkout: Delivery - page.should have_selector 'label', :text => "Delivery $3.00" + order_charges = page.all("tbody#summary-order-charges tr").map {|row| row.all('td').map(&:text)}.take(2) + order_charges.should == [["Product distribution by Edible garden for Fuji apples:", "$1.00"], + ["Product distribution by Edible garden for Garlic:", "$2.00"]] click_checkout_continue_button # -- Checkout: Payment