spec/check_spec.rb in check_writer-0.1.0 vs spec/check_spec.rb in check_writer-0.1.1

- old
+ new

@@ -40,9 +40,18 @@ it "can format the amount as currency" do @check.formatted_amount.should == "$1,003.23" end + context "a check for an amount with 0 cents" do + before(:each) do + @check.amount = 410.0 + end + it "should includes two zeros in the cents" do + @check.formatted_amount.should == "$410.00" + end + end + it "assigns the number" do @check.number.should == '12345' end it "generates pdf correctly" do