Fix the way we determine (and clean) the repo_path in functionals.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-08-13 15:46:39 -07:00
parent ee327094fb
commit c3fe1697bb

View file

@ -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") }