search for: cams_credit_card

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

2007 Jan 04
6
after_update attributes problem
...I can tell, when I define a after_update 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...