test/helper.rb in yahns-0.0.3 vs test/helper.rb in yahns-1.0.0

- old
+ new

@@ -117,9 +117,17 @@ def cloexec_pipe IO.pipe.each { |io| io.close_on_exec = true } end +def require_exec(cmd) + ENV["PATH"].split(/:/).each do |path| + return true if File.executable?("#{path}/#{cmd}") + end + skip "#{cmd} not found in PATH" + false +end + require 'yahns' # needed for parallel (MT) tests) require 'yahns/rack'