Sha256: e20e13369f2565ad8dfd026587fbc1c89eda7a67cc19e4f4670355437dd93ff3
Contents?: true
Size: 663 Bytes
Versions: 9
Compression:
Stored size: 663 Bytes
Contents
require 'eyeballs' require 'fileutils' require 'pathname' # Debugger.settings[:autoeval] = true def create_test_root FileUtils.mkdir_p(test_root) end def remove_test_root FileUtils.rm_r(test_root) end def run_command(cmd) system("cd #{test_root}; ../../bin/#{cmd}") end def file(*parts) Pathname.new([test_root, *parts].join('/')) end def test_root File.join(File.dirname(File.expand_path(__FILE__)), 'test_root') end # class FileChecker # def initialize(parts) # @file = File.join(parts) # end # # def exist? # File.exists?(@file) # end # # def read # File.read(@file) # end # # def to_s # @file # end # end
Version data entries
9 entries across 9 versions & 1 rubygems