mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Add more tests to deposit handling
This commit is contained in:
parent
b8c082090e
commit
c028c0e477
3 changed files with 32 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue