Skip to content

Commit c279d77

Browse files
committed
tests: configure a default currency
1 parent 04422b2 commit c279d77

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

spec/double_entry/validation/line_check_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module Validation
7676
its(:errors_found) { should be true }
7777

7878
its(:log) { should include <<~LOG }
79-
Error on account \#{Account account: savings scope: currency: USD}: 100.01 (cached balance) != 100.00 (running balance)
79+
Error on account \#{Account account: savings scope: currency: }: 100.01 (cached balance) != 100.00 (running balance)
8080
LOG
8181

8282
it 'should correct the account balance' do

spec/support/money.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Money.locale_backend = :i18n
2+
Money.default_currency = Money::Currency.new('USD')

0 commit comments

Comments
 (0)