Skip to content

Commit f2309ab

Browse files
committed
Fix currency tests for locales that don't return $ as USD symbol
1 parent 06cb23f commit f2309ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

grails-databinding/src/test/groovy/org/grails/databinding/converters/CurrencyConversionSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CurrencyConversionSpec extends Specification {
1818

1919
then:
2020
bank.currency instanceof Currency
21-
'$' == bank.currency.symbol
21+
'USD' == bank.currency.currencyCode
2222
}
2323
}
2424

grails-test-suite-persistence/src/test/groovy/org/codehaus/groovy/grails/orm/GrailsWebDataBinderSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ class GrailsWebDataBinderSpec extends Specification {
12961296

12971297
then:
12981298
publisher.localCurrency instanceof Currency
1299-
'$' == publisher.localCurrency.symbol
1299+
'USD' == publisher.localCurrency.currencyCode
13001300
}
13011301
}
13021302

0 commit comments

Comments
 (0)