diff options
author | Mercedes Bernard <mercedesrbernard@gmail.com> | 2023-02-16 12:10:22 -0600 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-02-23 08:50:03 +0000 |
commit | ffc202738b02d781fe2cf7542806d11a4eb47035 (patch) | |
tree | 5667d8b00bde3d7ff019c96adc6693c33cae875d | |
parent | 583137fe5697c0d7119a11caa61c343683dc81e5 (diff) | |
download | ruby-ffc202738b02d781fe2cf7542806d11a4eb47035.tar.gz |
[rubygems/rubygems] add test for private load_marshal method
https://github.com/rubygems/rubygems/commit/3a772125b8
-rw-r--r-- | spec/bundler/bundler/bundler_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/bundler/bundler/bundler_spec.rb b/spec/bundler/bundler/bundler_spec.rb index e0901c36ff..5b07f8159b 100644 --- a/spec/bundler/bundler/bundler_spec.rb +++ b/spec/bundler/bundler/bundler_spec.rb @@ -9,6 +9,11 @@ RSpec.describe Bundler do data = Marshal.dump(Bundler) expect { Bundler.load_marshal(data) }.to raise_error(NoMethodError, /private method `load_marshal' called/) end + + it "loads any data" do + data = Marshal.dump(Bundler) + expect(Bundler.send(:load_marshal, data)).to eq(Bundler) + end end describe "#safe_load_marshal" do |