diff options
| author | Mercedes Bernard <mercedesrbernard@gmail.com> | 2023-02-15 15:07:05 -0600 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-02-23 08:50:03 +0000 |
| commit | 583137fe5697c0d7119a11caa61c343683dc81e5 (patch) | |
| tree | ac493a9f10ceb86ac289b6b617975c6d35b9c402 /spec | |
| parent | d5994eb4362d7aba01c36b1b3a1ec3e7462d70d5 (diff) | |
[rubygems/rubygems] make Bundler.load_marshal private
https://github.com/rubygems/rubygems/commit/4909d071d2
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/bundler/bundler/bundler_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/bundler/bundler_spec.rb b/spec/bundler/bundler/bundler_spec.rb index 5894b4aa12..e0901c36ff 100644 --- a/spec/bundler/bundler/bundler_spec.rb +++ b/spec/bundler/bundler/bundler_spec.rb @@ -5,9 +5,9 @@ require "tmpdir" RSpec.describe Bundler do describe "#load_marshal" do - it "loads any data" do + it "is a private method and raises an error" do data = Marshal.dump(Bundler) - expect(Bundler.load_marshal(data)).to eq(Bundler) + expect { Bundler.load_marshal(data) }.to raise_error(NoMethodError, /private method `load_marshal' called/) end end |
