Sha256: d9dbb150f33ed2a1921b77ad5d9ace7c2864e1d5444026d61e2a9dc74360b8d8

Contents?: true

Size: 682 Bytes

Versions: 6

Compression:

Stored size: 682 Bytes

Contents

require 'eyeballs'
require 'fileutils'
require 'ruby-debug'
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

6 entries across 6 versions & 1 rubygems

Version Path
eyeballs-0.3.7 spec/spec_helper.rb
eyeballs-0.3.6.1 spec/spec_helper.rb
eyeballs-0.3.6 spec/spec_helper.rb
eyeballs-0.3.5 spec/spec_helper.rb
eyeballs-0.3.4.1 spec/spec_helper.rb
eyeballs-0.3.4 spec/spec_helper.rb