Skip to content

Commit

Permalink
[MSpec] Import the latest mspec fix which fixes the usage of -t with …
Browse files Browse the repository at this point in the history
…subprocesses.
  • Loading branch information
eregon committed Oct 1, 2016
1 parent c2a4956 commit f0ab78b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/mspec/lib/mspec/utils/script.rb
Expand Up @@ -212,8 +212,14 @@ def files(list)

def setup_env
ENV['MSPEC_RUNNER'] = '1'
ENV['RUBY_EXE'] = config[:target] if config[:target]
ENV['RUBY_FLAGS'] = config[:flags].join(" ") if config[:flags]

unless ENV['RUBY_EXE']
ENV['RUBY_EXE'] = config[:target] if config[:target]
end

unless ENV['RUBY_FLAGS']
ENV['RUBY_FLAGS'] = config[:flags].join(" ") if config[:flags]
end
end

# Instantiates an instance and calls the series of methods to
Expand Down

0 comments on commit f0ab78b

Please sign in to comment.