From 16515f66ce4df142fe155aebcb766292967a97f6 Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Wed, 17 Apr 2013 10:17:19 +0100 Subject: [PATCH] Rework file instantiation. --- src/test/steps/gvm/installation_steps.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }