Skip to content

Commit

Permalink
Add test for load_env_plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
djmarcin committed Jul 16, 2020
1 parent 675c61e commit 7201382
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bundler/spec/bundler/plugin/installer_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 7201382

Please sign in to comment.