You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by ul...@apache.org on 2012/10/26 13:09:33 UTC

git commit: getAbsolutePath returns path without ending slash, so start one character later

Updated Branches:
  refs/heads/master 209efb827 -> 1894d07f6


getAbsolutePath returns path without ending slash, so start one character
later


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

Branch: refs/heads/master
Commit: 1894d07f6484b40d9ab7fad88eefc49e15b75b90
Parents: 209efb8
Author: Ulrich Staerk <ul...@apache.org>
Authored: Fri Oct 26 13:07:54 2012 +0200
Committer: Ulrich Staerk <ul...@apache.org>
Committed: Fri Oct 26 13:07:54 2012 +0200

----------------------------------------------------------------------
 .../internal/plastic/PlasticUtilsTests.groovy      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/1894d07f/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy
----------------------------------------------------------------------
diff --git a/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy b/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy
index 94d4ec5..5e1e3d0 100644
--- a/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy
+++ b/plastic/src/test/groovy/org/apache/tapestry5/internal/plastic/PlasticUtilsTests.groovy
@@ -30,7 +30,7 @@ class PlasticUtilsTests extends Specification
 				file.createNewFile();
 				file.deleteOnExit();
 				expect:
-				PlasticInternalUtils.getStreamForPath(getClass().classLoader, file.getAbsolutePath().substring(new File(url.toURI()).getAbsolutePath().length()) ) != null
+				PlasticInternalUtils.getStreamForPath(getClass().classLoader, file.getAbsolutePath().substring(new File(url.toURI()).getAbsolutePath().length() + 1) ) != null
 		}
 
     def "Descriptor #descriptor as class name should be #className"()