Displaying 1 result from an estimated 1 matches for "account_transaction_test".
2006 May 15
0
acts_as_list, move_higher, odd indexing behaviour?
...its[1].move_to_top # does work
@account_transaction.reload
display_credits @account_transaction
assert_equal @account_transaction.credits[1].id, @first_credit.id
assert_equal @account_transaction.credits[0].id, @second_credit.id
end
end
# outputs:
# Loaded suite test/unit/account_transaction_test
# Started
# index 0 id 1 position 1
# index 1 id 2 position 8
# index 0 id 1 position 1
# index 1 id 2 position 8
# index 0 id 2 position 1
# index 1 id 1 position 2
# ..
# Finished in 0.188056 seconds.
# credits.yml
first_credit:
id: 1
transaction_id: 1
position: 1
account_id: 1...