diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-11-07 20:11:26 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-11-07 20:11:26 -0800 |
commit | d4077fcea003d4c902d3e20e3d55b32792a1f40e (patch) | |
tree | 01ca80df52770ad399a71c175e91d10c8fb448bd | |
parent | 1364872e38dd72794bbbd64dcec68ba3485fef78 (diff) | |
download | chef-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.rb | 5 |
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) |