mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
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:
parent
ee327094fb
commit
c3fe1697bb
1 changed files with 2 additions and 2 deletions
|
@ -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") }
|
||||
|
|
Loading…
Reference in a new issue