diff --git a/bundler/spec/bundler/plugin/installer_spec.rb b/bundler/spec/bundler/plugin/installer_spec.rb index e89720f6f732..753ef0596a02 100644 --- a/bundler/spec/bundler/plugin/installer_spec.rb +++ b/bundler/spec/bundler/plugin/installer_spec.rb @@ -109,6 +109,13 @@ expect(result["re-plugin"].full_gem_path). to eq(global_plugin_gem("re-plugin-1.0").to_s) end + + it "loads env plugins" do + Bundler.settings # initialize it before we have to touch rubygems.ext_lock + 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