diff options
author | Andre Arko <andre@arko.net> | 2021-07-13 02:25:09 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-07-16 15:40:07 +0900 |
commit | a3d2200b2ab29d4b8a127993254c34e90a5f341f (patch) | |
tree | f9f8052a3cb41bb205e02a4c50531b581ae03b41 /spec/bundler/bundler | |
parent | 5cce96891ec288462b98149410d53c301cbf7682 (diff) |
[rubygems/rubygems] test loading bad plugins with nil/empty names
https://github.com/rubygems/rubygems/commit/e64b1f3497
Diffstat (limited to 'spec/bundler/bundler')
-rw-r--r-- | spec/bundler/bundler/plugin_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/bundler/plugin_spec.rb b/spec/bundler/bundler/plugin_spec.rb index cc28382043..d1a05bbad7 100644 --- a/spec/bundler/bundler/plugin_spec.rb +++ b/spec/bundler/bundler/plugin_spec.rb @@ -277,7 +277,7 @@ RSpec.describe Bundler::Plugin do Bundler::Plugin::Events.send(:define, :EVENT_2, "event-2") allow(index).to receive(:hook_plugins).with(Bundler::Plugin::Events::EVENT_1). - and_return(["foo-plugin"]) + and_return(["foo-plugin", "", nil]) allow(index).to receive(:hook_plugins).with(Bundler::Plugin::Events::EVENT_2). and_return(["foo-plugin"]) allow(index).to receive(:plugin_path).with("foo-plugin").and_return(path) |