mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Functional helper let changes.
Moved exec_inspec to inspec_path. Added new exec_inspec that invokes ruby w/ -Ilib (expanded). Decouples from bundler and/or needing inspec-bin to be installed. Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
80cfc419f8
commit
1ed4128942
1 changed files with 3 additions and 1 deletions
|
@ -81,7 +81,9 @@ module FunctionalHelper
|
||||||
path.gsub!('//vboxsrv', 'C:') if is_windows?
|
path.gsub!('//vboxsrv', 'C:') if is_windows?
|
||||||
path
|
path
|
||||||
end
|
end
|
||||||
let(:exec_inspec) { File.join(repo_path, 'inspec-bin', 'bin', 'inspec') }
|
let(:inspec_path) { File.join(repo_path, 'inspec-bin', 'bin', 'inspec') }
|
||||||
|
libdir = File.expand_path "lib"
|
||||||
|
let(:exec_inspec) { [Gem.ruby, "-I#{libdir}", inspec_path].join " " }
|
||||||
let(:mock_path) { File.join(repo_path, 'test', 'unit', 'mock') }
|
let(:mock_path) { File.join(repo_path, 'test', 'unit', 'mock') }
|
||||||
let(:profile_path) { File.join(mock_path, 'profiles') }
|
let(:profile_path) { File.join(mock_path, 'profiles') }
|
||||||
let(:examples_path) { File.join(profile_path, 'old-examples') }
|
let(:examples_path) { File.join(profile_path, 'old-examples') }
|
||||||
|
|
Loading…
Reference in a new issue