diff options
author | Martin Emde <martin.emde@gmail.com> | 2023-09-01 15:47:58 -0700 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-09-12 19:42:46 +0000 |
commit | d43765c3a9d006599895538be12b5b45c1873085 (patch) | |
tree | 76a803b9d78807c6f6c6e22ddf764b19977659da /spec | |
parent | 0ae7f2d1ac354cd92d513f934aede0cabd6dbc9f (diff) | |
download | ruby-d43765c3a9d006599895538be12b5b45c1873085.tar.gz |
[rubygems/rubygems] Unify LockfileParser loading of SPECS section
Ensure unrecognized SPECS types are ignored
https://github.com/rubygems/rubygems/commit/5b33e91075
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/bundler/plugin_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/bundler/plugin_spec.rb b/spec/bundler/bundler/plugin_spec.rb index d28479cf31..1731a2085e 100644 --- a/spec/bundler/bundler/plugin_spec.rb +++ b/spec/bundler/bundler/plugin_spec.rb @@ -225,7 +225,7 @@ RSpec.describe Bundler::Plugin do end end - describe "#source_from_lock" do + describe "#from_lock" do it "returns instance of registered class initialized with locked opts" do opts = { "type" => "l_source", "remote" => "xyz", "other" => "random" } allow(index).to receive(:source_plugin).with("l_source") { "plugin_name" } @@ -236,7 +236,7 @@ RSpec.describe Bundler::Plugin do expect(SClass).to receive(:new). with(hash_including("type" => "l_source", "uri" => "xyz", "other" => "random")) { s_instance } - expect(subject.source_from_lock(opts)).to be(s_instance) + expect(subject.from_lock(opts)).to be(s_instance) end end |