Skip to content

Commit

Permalink
changed unit test for JBEHAVE-712 to work with unix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlehm committed Mar 12, 2012
1 parent b379d21 commit 2198103
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void shouldAllowInstantiation() {
@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("/äöü"));
Expand Down

0 comments on commit 2198103

Please sign in to comment.