Created
December 3, 2008 22:12
-
-
Save scudco/31725 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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