mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Use environmental variable for bundled_gems_spec.rb
This commit is contained in:
parent
2d2e5a38bf
commit
11265baed9
Notes:
git
2024-11-14 23:16:19 +00:00
@ -52,7 +52,7 @@ module Gem::BUNDLED_GEMS
|
||||
WARNED = {} # unfrozen
|
||||
|
||||
conf = ::RbConfig::CONFIG
|
||||
if !File.exist?(conf["rubylibdir"])
|
||||
if ENV["TEST_BUNDLED_GEMS"]
|
||||
LIBDIR = (File.expand_path(File.join(__dir__, "..", "lib")) + "/").freeze
|
||||
else
|
||||
LIBDIR = (conf["rubylibdir"] + "/").freeze
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
require "bundled_gems"
|
||||
|
||||
RSpec.describe "bundled_gems.rb" do
|
||||
ENV["TEST_BUNDLED_GEMS"] = "true"
|
||||
|
||||
def script(code, options = {})
|
||||
options[:artifice] ||= "compact_index"
|
||||
ruby("require 'bundler/inline'\n\n" + code, options)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user