Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make XML generation actually work on Windows paths too

  • Loading branch information...
commit 91c25875891a57c8f234636f877f98da3e0d8c11 1 parent f6aeb06
@olabini authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/ioke/ispec/formatter.ik
View
5 lib/ioke/ispec/formatter.ik
@@ -240,6 +240,7 @@ ISpec do(
originalOut = System out
originalErr = System err
+ separator = if(System windows?, "\\", "/")
start = method(exampleCount,
super(exampleCount)
@@ -254,7 +255,7 @@ ISpec do(
System out = originalOut
System err = originalErr
example totalTime = example endTime - example startTime
- filename = example message filename replace("#{System currentWorkingDirectory}/", "")
+ filename = example message filename replace("#{System currentWorkingDirectory}#{separator}", "")
(allResults[filename] ||= []) << [type, example, rest]
startTimes[filename] ||= example startTime
)
@@ -285,7 +286,7 @@ ISpec do(
FileSystem ensureDirectory(directory)
allResults keys sort each(k,
- out = "#{directory}/TEST-#{k replace(#/.ik\Z/, "") replaceAll(#/[\\\/]/, ".")}.xml"
+ out = "#{directory}#{separator}TEST-#{k replace(#/.ik\Z/, "") replaceAll(#/[\\\/]/, ".")}.xml"
bind(rescue(Condition Error, fn(ignored, nil)),
FileSystem removeFile!(out))
Please sign in to comment.
Something went wrong with that request. Please try again.