You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2018/10/20 09:22:11 UTC
groovy git commit: Refine checking OS in
`MarkupTemplateEngineSpecTest.testLocale`
Repository: groovy
Updated Branches:
refs/heads/master ed17fb24d -> f6b996f11
Refine checking OS in `MarkupTemplateEngineSpecTest.testLocale`
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/f6b996f1
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/f6b996f1
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/f6b996f1
Branch: refs/heads/master
Commit: f6b996f119a98553360dfe6e297b0f8746f58930
Parents: ed17fb2
Author: Daniel Sun <su...@apache.org>
Authored: Sat Oct 20 17:22:02 2018 +0800
Committer: Daniel Sun <su...@apache.org>
Committed: Sat Oct 20 17:22:02 2018 +0800
----------------------------------------------------------------------
.../src/spec/test/MarkupTemplateEngineSpecTest.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/f6b996f1/subprojects/groovy-templates/src/spec/test/MarkupTemplateEngineSpecTest.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-templates/src/spec/test/MarkupTemplateEngineSpecTest.groovy b/subprojects/groovy-templates/src/spec/test/MarkupTemplateEngineSpecTest.groovy
index 59943bc..2849dc3 100644
--- a/subprojects/groovy-templates/src/spec/test/MarkupTemplateEngineSpecTest.groovy
+++ b/subprojects/groovy-templates/src/spec/test/MarkupTemplateEngineSpecTest.groovy
@@ -490,7 +490,7 @@ html {
void testLocale() {
// TODO shouldn't this (or a better) test pass in all environments??
- if (!Charset.defaultCharset().displayName().contains("windows")) {
+ if (!System.getProperty("os.name").toLowerCase().contains("windows")) {
config.locale = Locale.ENGLISH
templateContents = '''
// tag::locale_explicit_import[]