Skip to content

Commit 6e2185a

Browse files
committed
Add test that load_env_plugins is called
1 parent bbeece8 commit 6e2185a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bundler/spec/commands/install_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,17 @@
432432
gem 'foo'
433433
G
434434
end
435+
436+
it "loads env plugins" do
437+
plugin_msg = "hello from an env plugin!"
438+
create_file "plugins/rubygems_plugin.rb", "puts '#{plugin_msg}'"
439+
gemfile = <<-G
440+
source "#{file_uri_for(gem_repo1)}"
441+
gem "rack"
442+
G
443+
out = install_gemfile gemfile, :env => { "RUBYLIB" => bundled_app("plugins/").to_s }
444+
expect(out).to include(plugin_msg)
445+
end
435446
end
436447

437448
describe "Ruby version in Gemfile.lock" do

0 commit comments

Comments
 (0)