summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorMercedes Bernard <mercedesrbernard@gmail.com>2023-02-16 12:10:22 -0600
committergit <svn-admin@ruby-lang.org>2023-02-23 08:50:03 +0000
commitffc202738b02d781fe2cf7542806d11a4eb47035 (patch)
tree5667d8b00bde3d7ff019c96adc6693c33cae875d /spec/bundler
parent583137fe5697c0d7119a11caa61c343683dc81e5 (diff)
[rubygems/rubygems] add test for private load_marshal method
https://github.com/rubygems/rubygems/commit/3a772125b8
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/bundler/bundler_spec.rb5
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