Fix spec for charges by adjustment not shipping method

This commit is contained in:
Rohan Mitchell
2013-08-13 09:11:12 +10:00
parent 43f482a803
commit b71f7eec3d

View File

@@ -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