1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-23 07:09:39 +02:00

Add formatting for EUR locales (#1231)

* Add formatting for EUR locales

* Fix formatting assertion for EUR in english locales
This commit is contained in:
Zach Gollwitzer 2024-10-03 10:25:38 -04:00 committed by GitHub
parent ab40289eb4
commit 82c298307d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 42 additions and 59 deletions

View file

@ -25,9 +25,9 @@ class ApplicationHelperTest < ActionView::TestCase
test "#totals_by_currency(collection: collection, money_method: money_method)" do
assert_equal "$3.00", totals_by_currency(collection: [ @account1, @account2 ], money_method: :balance_money)
assert_equal "$3.00 | -€7,00", totals_by_currency(collection: [ @account1, @account2, @account3 ], money_method: :balance_money)
assert_equal "$3.00 | -€7.00", totals_by_currency(collection: [ @account1, @account2, @account3 ], money_method: :balance_money)
assert_equal "", totals_by_currency(collection: [], money_method: :balance_money)
assert_equal "$0.00", totals_by_currency(collection: [ Account.new(currency: "USD", balance: 0) ], money_method: :balance_money)
assert_equal "-$3.00 | €7,00", totals_by_currency(collection: [ @account1, @account2, @account3 ], money_method: :balance_money, negate: true)
assert_equal "-$3.00 | €7.00", totals_by_currency(collection: [ @account1, @account2, @account3 ], money_method: :balance_money, negate: true)
end
end