search for: registeritem

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

2007 Jan 04
6
after_update attributes problem
...date callback on a model, the attributes of the object have the same values that they had *before* Base.save was called. I''m probably wrong so here''s the code: UNIT TEST: def test_register_item_adjusts_account_balance account = accounts(:cams_credit_card) transaction = RegisterItem.new(:date => ''2006-10-31'', :description => ''Chinese food'', :amount => ''-13.44'') transaction.account = account transaction.save assert_equal -113.44, accou...