Skip to content

Commit

Permalink
Add test that load_env_plugins is called
Browse files Browse the repository at this point in the history
  • Loading branch information
djmarcin committed Sep 4, 2020
1 parent bbeece8 commit 6e2185a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bundler/spec/commands/install_spec.rb
Expand Up @@ -432,6 +432,17 @@
gem 'foo'
G
end

it "loads env plugins" do
plugin_msg = "hello from an env plugin!"
create_file "plugins/rubygems_plugin.rb", "puts '#{plugin_msg}'"
gemfile = <<-G
source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
out = install_gemfile gemfile, :env => { "RUBYLIB" => bundled_app("plugins/").to_s }
expect(out).to include(plugin_msg)
end
end

describe "Ruby version in Gemfile.lock" do
Expand Down

0 comments on commit 6e2185a

Please sign in to comment.