Skip to content

Commit 7201382

Browse files
committed
Add test for load_env_plugins
1 parent 675c61e commit 7201382

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bundler/spec/bundler/plugin/installer_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@
109109
expect(result["re-plugin"].full_gem_path).
110110
to eq(global_plugin_gem("re-plugin-1.0").to_s)
111111
end
112+
113+
it "loads env plugins" do
114+
Bundler.settings # initialize it before we have to touch rubygems.ext_lock
115+
expect(Bundler).to receive_message_chain("rubygems.load_env_plugins")
116+
expect(result["re-plugin"].full_gem_path).
117+
to eq(global_plugin_gem("re-plugin-1.0").to_s)
118+
end
112119
end
113120

114121
context "multiple plugins" do

0 commit comments

Comments
 (0)