commit 219810356553e0e9dd12eb45957ef85042b0faeb
Author: Alex Lehmann <[email protected]>
AuthorDate: Mon Mar 12 20:00:27 2012 +0100
Commit: Alex Lehmann <[email protected]>
CommitDate: Mon Mar 12 20:00:27 2012 +0100
changed unit test for JBEHAVE-712 to work with unix
diff --git
a/jbehave-core/src/test/java/org/jbehave/core/io/CodeLocationsBehaviour.java
b/jbehave-core/src/test/java/org/jbehave/core/io/CodeLocationsBehaviour.java
index 93bcb43..96bcedb 100755
--- a/jbehave-core/src/test/java/org/jbehave/core/io/CodeLocationsBehaviour.java
+++ b/jbehave-core/src/test/java/org/jbehave/core/io/CodeLocationsBehaviour.java
@@ -62,7 +62,7 @@ public class CodeLocationsBehaviour {
@Test
public void shouldHandleSpacesAndSpecialChars() throws
MalformedURLException, URISyntaxException {
assertThat(CodeLocations.getPathFromURL(CodeLocations.codeLocationFromPath("some
Path")), not(containsString("%20")));
- assertThat(CodeLocations.getPathFromURL(pathToURL("c:/a b c+++/")),
equalTo("/c:/a b c+++"));
+ assertThat(CodeLocations.getPathFromURL(pathToURL("c:/a b c+++/")),
endsWith("/c:/a b c+++"));
assertThat(CodeLocations.getPathFromURL(pathToURL("/home/user/foo
bar/+++/")), endsWith("/home/user/foo bar/+++"));
assertThat(CodeLocations.getPathFromURL(CodeLocations.codeLocationFromURL("http://www.example.com/stories/")),
equalTo("http://www.example.com/stories/"));
assertThat(CodeLocations.getPathFromURL(CodeLocations.codeLocationFromPath("äöü")),
endsWith("/äöü"));