diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-03-11 13:06:16 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-03-11 13:31:20 -0700 |
commit | c14f8414009ba41fd5634acc83817b226901ae80 (patch) | |
tree | c020378f2ec00f2d0d9373e87557f052d53be982 /spec | |
parent | dfd018cb04a2eae78e5cd8f7569dff4919e3769a (diff) | |
download | chef-c14f8414009ba41fd5634acc83817b226901ae80.tar.gz |
Fix load path in test runs.fix-rspec-load-path
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 605f920125..54e0ef41b1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -24,18 +24,16 @@ module Shell IRB = nil unless defined? IRB end -# Ruby 1.9 Compat -$:.unshift File.expand_path("../..", __FILE__) +$LOAD_PATH.unshift File.expand_path("../..", __FILE__) + +$LOAD_PATH.unshift File.expand_path("../../chef-config/lib", __FILE__) +$LOAD_PATH.unshift File.expand_path("../../chef-utils/lib", __FILE__) require "rubygems" require "rspec/mocks" require "webmock/rspec" -$:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) -$:.unshift(File.expand_path("../lib", __FILE__)) -$:.unshift(File.dirname(__FILE__)) - if ENV["COVERAGE"] require "simplecov" SimpleCov.start do |