summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <454857+lamont-granquist@users.noreply.github.com>2021-11-29 17:18:52 -0800
committerGitHub <noreply@github.com>2021-11-29 17:18:52 -0800
commitd04fcc0abc5b12322de0841d975ac7dd8829eaa7 (patch)
treed0121640ee33fa13a3421cc55b3320c692df99a1
parent1086520428843687e4ea442abc2fdfbe9aea2bf3 (diff)
parentb58bb1ab988b6f2ba69233d9d9a7505ccf9f3288 (diff)
downloadchef-d04fcc0abc5b12322de0841d975ac7dd8829eaa7.tar.gz
Merge pull request #12318 from chef/lcg/rubygems-3.2-fixes
-rw-r--r--spec/unit/provider/package/rubygems_spec.rb3
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