Add more tests to deposit handling

This commit is contained in:
Maciej Szlosarczyk 2018-08-15 20:15:17 +03:00
parent b8c082090e
commit c028c0e477
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 32 additions and 3 deletions

View file

@ -40,8 +40,8 @@ class DepositTest < ActiveSupport::TestCase
@deposit.amount = "12.00"
assert_equal(BigDecimal.new("12.00"), @deposit.amount)
@deposit.amount = "12,00"
assert_equal(BigDecimal.new("12.00"), @deposit.amount)
@deposit.amount = "12,11"
assert_equal(BigDecimal.new("12.11"), @deposit.amount)
end
def test_amount_is_converted_from_float