diff --git a/src/test/steps/gvm/installation_steps.groovy b/src/test/steps/gvm/installation_steps.groovy index 3ab7f6a5..2e413313 100644 --- a/src/test/steps/gvm/installation_steps.groovy +++ b/src/test/steps/gvm/installation_steps.groovy @@ -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() }