Skip to content

Instantly share code, notes, and snippets.

@scudco
Created December 3, 2008 22:12
Show Gist options
  • Save scudco/31725 to your computer and use it in GitHub Desktop.
Save scudco/31725 to your computer and use it in GitHub Desktop.
describe "ShoppingCartPage" do
it "should update the shipping charges if a premium shipping option is selected" do
MyWidgetStore.new do |widget_store|
widget_store.shopping_cart_page do |cart|
initial_shipping_charges = cart.shipping_charges
cart.shipping_option.select "Super Same Day Shipping 5000"
cart.shipping_charges.should_not == initial_shipping_charges
cart.shipping_charges.should == '$75.00'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment