From ffc202738b02d781fe2cf7542806d11a4eb47035 Mon Sep 17 00:00:00 2001 From: Mercedes Bernard Date: Thu, 16 Feb 2023 12:10:22 -0600 Subject: [rubygems/rubygems] add test for private load_marshal method https://github.com/rubygems/rubygems/commit/3a772125b8 --- spec/bundler/bundler/bundler_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/bundler') 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 -- cgit v1.2.3