Displaying 1 result from an estimated 1 matches for "register_item".
2007 Jan 04
6
after_update attributes problem
...hard time w/ the after_update callback on rails... As
far as 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&...