aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2023-08-20 21:13:20 -0700
committergit <svn-admin@ruby-lang.org>2023-09-20 02:03:00 +0000
commit7c6b500d8d5fad568780b21cc6a1deb3aa57e746 (patch)
tree494c7969d27a007e10588694590c30179990704d /spec
parent1fff3e44ff3248c2c0bbd2bd244d52f64cfdd8a5 (diff)
downloadruby-7c6b500d8d5fad568780b21cc6a1deb3aa57e746.tar.gz
[rubygems/rubygems] Fix bundler specs using safe_load
https://github.com/rubygems/rubygems/commit/ccb1bb5d3a
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/install/gems/resolving_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/install/gems/resolving_spec.rb b/spec/bundler/install/gems/resolving_spec.rb
index acaadea632..0c87948bb7 100644
--- a/spec/bundler/install/gems/resolving_spec.rb
+++ b/spec/bundler/install/gems/resolving_spec.rb
@@ -106,7 +106,7 @@ RSpec.describe "bundle install with install-time dependencies" do
path = "#{gem_repo2}/#{Gem::MARSHAL_SPEC_DIR}/actionpack-2.3.2.gemspec.rz"
spec = Marshal.load(Bundler.rubygems.inflate(File.binread(path)))
spec.dependencies.each do |d|
- d.instance_variable_set(:@type, :fail)
+ d.instance_variable_set(:@type, "fail")
end
File.open(path, "wb") do |f|
f.write Gem.deflate(Marshal.dump(spec))