diff options
author | Lamont Granquist <454857+lamont-granquist@users.noreply.github.com> | 2021-11-29 17:18:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 17:18:52 -0800 |
commit | d04fcc0abc5b12322de0841d975ac7dd8829eaa7 (patch) | |
tree | d0121640ee33fa13a3421cc55b3320c692df99a1 | |
parent | 1086520428843687e4ea442abc2fdfbe9aea2bf3 (diff) | |
parent | b58bb1ab988b6f2ba69233d9d9a7505ccf9f3288 (diff) | |
download | chef-d04fcc0abc5b12322de0841d975ac7dd8829eaa7.tar.gz |
Merge pull request #12318 from chef/lcg/rubygems-3.2-fixes
-rw-r--r-- | spec/unit/provider/package/rubygems_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/provider/package/rubygems_spec.rb b/spec/unit/provider/package/rubygems_spec.rb index 6ef63d3961..a4ffc1712e 100644 --- a/spec/unit/provider/package/rubygems_spec.rb +++ b/spec/unit/provider/package/rubygems_spec.rb @@ -410,6 +410,9 @@ describe Chef::Provider::Package::Rubygems do # Rubygems uses these two interally allow(RbConfig::CONFIG).to receive(:[]).with("arch").and_call_original allow(RbConfig::CONFIG).to receive(:[]).with("ruby_install_name").and_call_original + allow(RbConfig::CONFIG).to receive(:[]).with("ruby_version").and_call_original + allow(RbConfig::CONFIG).to receive(:[]).with("rubylibprefix").and_call_original + allow(RbConfig::CONFIG).to receive(:[]).with("vendordir").and_call_original allow(File).to receive(:executable?).and_return false allow(File).to receive(:executable?).with("#{bindir}/gem").and_return true # XXX: we can't stub the provider object directly here because referencing it will create it and that |