search for: amount_cents

Displaying 1 result from an estimated 1 matches for "amount_cents".

2007 May 03
1
unexpected failures with --reverse
...ll.new(valid_bill_attributes.except(:date)) bill.should have(1).error_on(:date) end it "should have an amount_currency" do bill = Bill.new(valid_bill_attributes) bill.amount_currency = nil bill.should have(1).error_on(:amount_currency) end it "should have an amount_cents greater than 0" do bill = Bill.new(valid_bill_attributes) bill.amount_cents = 0 bill.should have(1).error_on(:amount_cents) bill.amount_cents = -2 bill.should have(1).error_on(:amount_cents) end end describe Bill do before(:each) do @bill = Bill.new @date = moc...