Rework file instantiation.

This commit is contained in:
Marco Vermeulen
2013-04-17 10:17:19 +01:00
parent f054f92505
commit 16515f66ce

View File

@@ -12,7 +12,7 @@ Given(~'^the default "([^"]*)" candidate is "([^"]*)"$') { String candidate, Str
}
Then(~'^the candidate "([^"]*)" version "([^"]*)" is installed$') { String candidate, String version ->
def file = new File("${gvmDir}/${candidate}/${version}")
def file = "${gvmDir}/${candidate}/${version}" as File
if (!file.exists()) println bash.output
assert file.exists()
}