mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/mspec@d419d0b
This commit is contained in:
parent
4aca078bda
commit
f646d20aae
2 changed files with 9 additions and 2 deletions
|
@ -4,7 +4,14 @@
|
||||||
# directory is empty when the process exits.
|
# directory is empty when the process exits.
|
||||||
|
|
||||||
SPEC_TEMP_DIR_PID = Process.pid
|
SPEC_TEMP_DIR_PID = Process.pid
|
||||||
SPEC_TEMP_DIR = File.expand_path(ENV["SPEC_TEMP_DIR"] || "rubyspec_temp/#{SPEC_TEMP_DIR_PID}")
|
|
||||||
|
if spec_temp_dir = ENV["SPEC_TEMP_DIR"]
|
||||||
|
spec_temp_dir = File.realdirpath(spec_temp_dir)
|
||||||
|
else
|
||||||
|
spec_temp_dir = "#{File.realpath(Dir.pwd)}/rubyspec_temp/#{SPEC_TEMP_DIR_PID}"
|
||||||
|
end
|
||||||
|
SPEC_TEMP_DIR = spec_temp_dir
|
||||||
|
|
||||||
SPEC_TEMP_UNIQUIFIER = "0"
|
SPEC_TEMP_UNIQUIFIER = "0"
|
||||||
|
|
||||||
at_exit do
|
at_exit do
|
||||||
|
|
2
spec/mspec/spec/fixtures/my_ruby
vendored
2
spec/mspec/spec/fixtures/my_ruby
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo $RUBY_EXE
|
echo $RUBY_EXE
|
||||||
ruby "$@"
|
exec ruby "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue