Skip to content

Commit

Permalink
Maybe fix ruby-core?
Browse files Browse the repository at this point in the history
  • Loading branch information
djmarcin committed Sep 4, 2020
1 parent d5c54cf commit 77dd413
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions bundler/spec/commands/install_spec.rb
Expand Up @@ -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?
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 77dd413

Please sign in to comment.