You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ml...@apache.org on 2013/08/28 13:08:50 UTC

git commit: TAP5-1007 fix test to be run only on case insentive OS

Updated Branches:
  refs/heads/master cd7f9c874 -> dd109817e


TAP5-1007 fix test to be run only on case insentive OS


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/dd109817
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/dd109817
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/dd109817

Branch: refs/heads/master
Commit: dd109817ea9595b5103a1abcff5bbd53064c8981
Parents: cd7f9c8
Author: Massimo Lusetti <ml...@apache.org>
Authored: Wed Aug 28 13:08:35 2013 +0200
Committer: Massimo Lusetti <ml...@apache.org>
Committed: Wed Aug 28 13:08:35 2013 +0200

----------------------------------------------------------------------
 .../src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/dd109817/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy
----------------------------------------------------------------------
diff --git a/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy b/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy
index a99336d..8b17650 100644
--- a/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy
+++ b/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy
@@ -1,5 +1,6 @@
 package ioc.specs
 
+import org.apache.commons.lang3.SystemUtils
 import org.apache.tapestry5.ioc.internal.util.ClasspathResource
 import spock.lang.Specification
 
@@ -24,7 +25,11 @@ class ClasspathResourceSpec extends Specification {
         content(r) == RESOURCE_TXT_CONTENT
     }
 
-    def "case-mismatch on file name is detected"() {
+    def "case-mismatch on file name is detected on case insensitive OS"() {
+
+        if (!SystemUtils.IS_OS_WINDOWS)
+            return
+
         def r = new ClasspathResource("$FOLDER/Resource.Txt")
 
         when: