From c3fe1697bb39fbfdb573e3f0034f5f34cdf139ea Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Tue, 13 Aug 2019 15:46:39 -0700 Subject: [PATCH] Fix the way we determine (and clean) the repo_path in functionals. Signed-off-by: Ryan Davis --- test/functional/helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/helper.rb b/test/functional/helper.rb index 1e7fecd93..6c716b345 100644 --- a/test/functional/helper.rb +++ b/test/functional/helper.rb @@ -12,9 +12,9 @@ end module FunctionalHelper extend Minitest::Spec::DSL let(:repo_path) do - path = File.expand_path(File.join( __FILE__, "..", "..", "..")) + path = File.expand_path("../../..", __FILE__) # fix for vagrant repo pathing - path.gsub!("//vboxsrv", "C:") if is_windows? + path.gsub!("//vboxsvr", "C:") if is_windows? path end let(:inspec_path) { File.join(repo_path, "inspec-bin", "bin", "inspec") }