Money library error in substraction
February 12th, 2006
The Money library is a useful. Unfortunately, release 1.5.9 has an error. One cannot substract an amount from the empty Money.
The test case will fail with this:The error is caused by Money#-(other_money):
return other_money.dup if cents.zero? should be removed to allow the test case to pass.
Update (2006-02-13): Tobias already posted a new version of the library, available as a gem.
Leave a Reply