mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
sitelibdir makes no sense in ruby itself
This commit is contained in:
parent
fb928f0ea0
commit
c757c4e054
2 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,8 @@ require "./rbconfig" unless defined?(RbConfig)
|
||||||
load File.dirname(__FILE__) + '/ruby/default.mspec'
|
load File.dirname(__FILE__) + '/ruby/default.mspec'
|
||||||
OBJDIR = File.expand_path("spec/ruby/optional/capi/ext")
|
OBJDIR = File.expand_path("spec/ruby/optional/capi/ext")
|
||||||
class MSpecScript
|
class MSpecScript
|
||||||
|
@testing_ruby = true
|
||||||
|
|
||||||
builddir = Dir.pwd
|
builddir = Dir.pwd
|
||||||
srcdir = ENV['SRCDIR']
|
srcdir = ENV['SRCDIR']
|
||||||
srcdir ||= File.read("Makefile", encoding: "US-ASCII")[/^\s*srcdir\s*=\s*(.+)/i, 1] rescue nil
|
srcdir ||= File.read("Makefile", encoding: "US-ASCII")[/^\s*srcdir\s*=\s*(.+)/i, 1] rescue nil
|
||||||
|
|
|
@ -854,6 +854,8 @@ describe "Execution variable $:" do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "default $LOAD_PATH entries until sitelibdir included have @gem_prelude_index set" do
|
it "default $LOAD_PATH entries until sitelibdir included have @gem_prelude_index set" do
|
||||||
|
skip "no sense in ruby itself" if MSpecScript.instance_variable_defined?(:@testing_ruby)
|
||||||
|
|
||||||
$:.should.include?(RbConfig::CONFIG['sitelibdir'])
|
$:.should.include?(RbConfig::CONFIG['sitelibdir'])
|
||||||
idx = $:.index(RbConfig::CONFIG['sitelibdir'])
|
idx = $:.index(RbConfig::CONFIG['sitelibdir'])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue