aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-15 03:24:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-15 03:24:18 +0000
commit76c7c267a0c292dfe39ca0da427fc5b14af9b566 (patch)
tree922c7c9a9c249b57262d035782b774ef0b4d0960 /spec
parent42dee95b7eee0c27bdfb4f7586ae3ffe7ecada99 (diff)
downloadruby-76c7c267a0c292dfe39ca0da427fc5b14af9b566.tar.gz
default.mspec: use RbConfig::CONFIG
* spec/default.mspec (config): use RbConfig::CONFIG directly, loading with fake.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r--spec/default.mspec4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/default.mspec b/spec/default.mspec
index 0f87515db5..ad2969e6ef 100644
--- a/spec/default.mspec
+++ b/spec/default.mspec
@@ -1,3 +1,5 @@
+# -*- ruby -*-
+load "./rbconfig.rb"
load File.dirname(__FILE__) + '/rubyspec/ruby.2.2.mspec'
class MSpecScript
builddir = Dir.pwd
@@ -7,7 +9,7 @@ class MSpecScript
f.read[/^\s*srcdir\s*=\s*(.+)/i] and srcdir = $1
}
end
- config = proc{|name| `#{builddir}/miniruby -I#{srcdir} -r#{builddir}/rbconfig -e 'print RbConfig::CONFIG["#{name}"]'`}
+ config = RbConfig::CONFIG
# The default implementation to run the specs.
set :target, File.join(builddir, "miniruby#{config['exeext']}")