diff options
| author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-10-16 20:45:45 +0900 |
|---|---|---|
| committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-10-20 20:00:39 +0900 |
| commit | 5417b218c499db48b23de2bdc38ba2f33d3223c0 (patch) | |
| tree | 8556a1c1d8e5811f86d2e63b931c1212ae40413a /spec/commands | |
| parent | ce655f16ca1cc4b07af4bb981c20636bc6b02c84 (diff) | |
| download | bundler-5417b218c499db48b23de2bdc38ba2f33d3223c0.tar.gz | |
Added to support BUNDLE_RUBY and BUNDLE_GEM environmental variables.
They are replaced build binary on ruby core repository.
Diffstat (limited to 'spec/commands')
| -rw-r--r-- | spec/commands/newgem_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/commands/newgem_spec.rb b/spec/commands/newgem_spec.rb index 598d68ec3a..cfea63ece5 100644 --- a/spec/commands/newgem_spec.rb +++ b/spec/commands/newgem_spec.rb @@ -211,7 +211,10 @@ RSpec.describe "bundle gem" do end Dir.chdir(bundled_app("newgem")) do - system_gems ["rake-10.0.2", :bundler], :path => :bundle_path + gems = ["rake-10.0.2", :bundler] + # for Ruby core repository, Ruby 2.6+ has bundler as standard library. + gems.delete(:bundler) if ENV["BUNDLE_RUBY"] && ENV["BUNDLE_GEM"] + system_gems gems, :path => :bundle_path bundle! "exec rake build" end |
