From 49c0061a38b44708c0553e1d182885092ac851b0 Mon Sep 17 00:00:00 2001 From: David Marcin Date: Wed, 15 Jul 2020 17:36:45 -0700 Subject: [PATCH] Add test for load_env_plugins --- bundler/spec/bundler/plugin/installer_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundler/spec/bundler/plugin/installer_spec.rb b/bundler/spec/bundler/plugin/installer_spec.rb index e89720f6f732..c36011df23ba 100644 --- a/bundler/spec/bundler/plugin/installer_spec.rb +++ b/bundler/spec/bundler/plugin/installer_spec.rb @@ -109,6 +109,12 @@ expect(result["re-plugin"].full_gem_path). to eq(global_plugin_gem("re-plugin-1.0").to_s) end + + it "loads env plugins" do + expect(Bundler).to receive_message_chain("rubygems.load_env_plugins") + expect(result["re-plugin"].full_gem_path). + to eq(global_plugin_gem("re-plugin-1.0").to_s) + end end context "multiple plugins" do