Sha256: 38ce0204897663640b7bf169da92c406d5ef0e5781497e43c8c1e6c41fbf8986
Contents?: true
Size: 633 Bytes
Versions: 5
Compression:
Stored size: 633 Bytes
Contents
ENV['PADRINO_ENV'] = 'test' PADRINO_ROOT = File.dirname(__FILE__) unless defined? PADRINO_ROOT require File.expand_path('../../../load_paths', __FILE__) require File.join(File.dirname(__FILE__), '..', '..', 'padrino-core', 'test', 'helper') require 'padrino-cache' require 'fileutils' require 'uuid' class Test::Unit::TestCase def executable_on_path(binary) @matches = [] ENV['PATH'].split(":").each do |path| bintest = File.executable?("#{path}/#{binary}") pathmatch = "#{path}/#{binary}" @matches << pathmatch if bintest == true end @matches.length == 1 ? @matches.first : false end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
padrino-cache-0.9.24 | test/helper.rb |
padrino-cache-0.9.23 | test/helper.rb |
padrino-cache-0.9.22 | test/helper.rb |
padrino-cache-0.9.21 | test/helper.rb |
padrino-cache-0.9.20 | test/helper.rb |