Skip to content

Commit 77dd413

Browse files
committed
Maybe fix ruby-core?
1 parent d5c54cf commit 77dd413

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

bundler/spec/commands/install_spec.rb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,18 @@
216216
expect(the_bundle).to include_gems "rack 1.0.0", "activesupport 2.3.5"
217217
end
218218

219+
it "loads env plugins" do
220+
plugin_msg = "hello from an env plugin!"
221+
create_file "plugins/rubygems_plugin.rb", "puts '#{plugin_msg}'"
222+
puts ENV["RUBYLIB"]
223+
install_gemfile <<-G, :env => { "RUBYLIB" => "#{bundled_app("plugins/")}:#{ENV["RUBYLIB"]}" }
224+
source "#{file_uri_for(gem_repo1)}"
225+
gem "rack"
226+
G
227+
228+
expect(last_command.stdboth).to include(plugin_msg)
229+
end
230+
219231
describe "with a gem that installs multiple platforms" do
220232
it "installs gems for the local platform as first choice" do
221233
skip "version is 1.0, not 1.0.0" if Gem.win_platform?
@@ -432,16 +444,6 @@
432444
gem 'foo'
433445
G
434446
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-
install_gemfile <<-G, :env => { "RUBYLIB" => bundled_app("plugins/").to_s }
440-
source "#{file_uri_for(gem_repo1)}"
441-
gem 'foo'
442-
G
443-
expect(last_command.stdboth).to include(plugin_msg)
444-
end
445447
end
446448

447449
describe "Ruby version in Gemfile.lock" do

0 commit comments

Comments
 (0)