summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-11-07 20:11:26 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2019-11-07 20:11:26 -0800
commitd4077fcea003d4c902d3e20e3d55b32792a1f40e (patch)
tree01ca80df52770ad399a71c175e91d10c8fb448bd
parent1364872e38dd72794bbbd64dcec68ba3485fef78 (diff)
downloadchef-d4077fcea003d4c902d3e20e3d55b32792a1f40e.tar.gz
fix for buildkite
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--chef-utils/spec/unit/dsl/path_sanity_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/chef-utils/spec/unit/dsl/path_sanity_spec.rb b/chef-utils/spec/unit/dsl/path_sanity_spec.rb
index 14acc4298f..dc841f296b 100644
--- a/chef-utils/spec/unit/dsl/path_sanity_spec.rb
+++ b/chef-utils/spec/unit/dsl/path_sanity_spec.rb
@@ -22,6 +22,11 @@ RSpec.describe ChefUtils::DSL::PathSanity do
include ChefUtils::DSL::PathSanity
end
+ before do
+ allow(Gem).to receive(:bindir).and_return("/opt/ruby/bin/bundle")
+ allow(RbConfig::CONFIG).to receive(:[]).with("bindir").and_return("/opt/ruby/bin")
+ end
+
context "on unix" do
before do
allow(ChefUtils).to receive(:windows?).and_return(false)