Sha256: 51ce1c7bf036e24af2f838f4257f394c200aa79c7e00d188e8c5d5851a03ef02

Contents?: true

Size: 634 Bytes

Versions: 8

Compression:

Stored size: 634 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

8 entries across 8 versions & 1 rubygems

Version Path
padrino-cache-0.10.2 test/helper.rb
padrino-cache-0.10.1 test/helper.rb
padrino-cache-0.10.0 test/helper.rb
padrino-cache-0.9.29 test/helper.rb
padrino-cache-0.9.28 test/helper.rb
padrino-cache-0.9.27 test/helper.rb
padrino-cache-0.9.26 test/helper.rb
padrino-cache-0.9.25 test/helper.rb