mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-02-01 18:23:18 -05:00
Rework file instantiation.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user