1 require File.join( File.dirname(__FILE__), "..", "spec_helper" )
5 it "should be empty on initialize" do
7 @cart.items.should be_empty
12 describe Cart, "tax calculation" do
14 it "should have zero tax on initialize" do
16 @cart.tax.should == 0.0
19 it "should return a valid tax_cost" do
21 # need to use a mock for this
24 #@cart.tax_cost.should == 17.871
29 describe Cart, "total calculation" do
31 it "should have a zero total on initialize" do
33 @cart.total.should == 0.0
38 describe Cart, "shipping_cost calculation" do
40 it "should have a zero shipping_cost on initialize" do
42 @cart.shipping_cost.should == 0.0