summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-11-29 16:07:11 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2021-11-29 16:07:11 -0800
commitb58bb1ab988b6f2ba69233d9d9a7505ccf9f3288 (patch)
treed0121640ee33fa13a3421cc55b3320c692df99a1 /spec/unit
parent1086520428843687e4ea442abc2fdfbe9aea2bf3 (diff)
downloadchef-b58bb1ab988b6f2ba69233d9d9a7505ccf9f3288.tar.gz
Rubygems 3.2.x spec fixeslcg/rubygems-3.2-fixes
Needed for ruby-3.0.3 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
-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