Displaying 1 result from an estimated 1 matches for "sa_report_products".
2006 Jan 10
1
Can somebody explain when to reload an ActiveRecord
Hi all,
I''ve the following test method in my controller_test which increment the
''qty'' attribute in a has_many association, ''sa_report_products''. The
''item_count'' method returns the sum of all qty''s in ''sa_report_products'':
def test_add_product_to_report
sa_rpt = SaReport.find(1)
assert_equal 3, c = sa_rpt.item_count, ''initial count is 3''
assert_equal 2...