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 3df693c commit a52d241
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bundler/spec/bundler/plugin/installer_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit a52d241

Please sign in to comment.