diff --git a/bundler/spec/commands/install_spec.rb b/bundler/spec/commands/install_spec.rb index d5a22c07956a..98c2aad45353 100644 --- a/bundler/spec/commands/install_spec.rb +++ b/bundler/spec/commands/install_spec.rb @@ -216,6 +216,18 @@ expect(the_bundle).to include_gems "rack 1.0.0", "activesupport 2.3.5" end + it "loads env plugins" do + plugin_msg = "hello from an env plugin!" + create_file "plugins/rubygems_plugin.rb", "puts '#{plugin_msg}'" + puts ENV["RUBYLIB"] + install_gemfile <<-G, :env => { "RUBYLIB" => "#{bundled_app("plugins/")}:#{ENV["RUBYLIB"]}" } + source "#{file_uri_for(gem_repo1)}" + gem "rack" + G + + expect(last_command.stdboth).to include(plugin_msg) + end + describe "with a gem that installs multiple platforms" do it "installs gems for the local platform as first choice" do skip "version is 1.0, not 1.0.0" if Gem.win_platform? @@ -432,16 +444,6 @@ 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}'" - install_gemfile <<-G, :env => { "RUBYLIB" => bundled_app("plugins/").to_s } - source "#{file_uri_for(gem_repo1)}" - gem 'foo' - G - expect(last_command.stdboth).to include(plugin_msg) - end end describe "Ruby version in Gemfile.lock" do