Sha256: 1ccd457c511af451192ee86ce52018078c59827de64e746d8d02bf16b3d9fc48

Contents?: true

Size: 682 Bytes

Versions: 20

Compression:

Stored size: 682 Bytes

Contents

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

20 entries across 20 versions & 1 rubygems

Version Path
eyeballs-0.5.17 spec/spec_helper.rb
eyeballs-0.5.16 spec/spec_helper.rb
eyeballs-0.5.15 spec/spec_helper.rb
eyeballs-0.5.14 spec/spec_helper.rb
eyeballs-0.5.13.2 spec/spec_helper.rb
eyeballs-0.5.13.1 spec/spec_helper.rb
eyeballs-0.5.13 spec/spec_helper.rb
eyeballs-0.5.12.1 spec/spec_helper.rb
eyeballs-0.5.12 spec/spec_helper.rb
eyeballs-0.5.11 spec/spec_helper.rb
eyeballs-0.5.10.1 spec/spec_helper.rb
eyeballs-0.5.10 spec/spec_helper.rb
eyeballs-0.5.9 spec/spec_helper.rb
eyeballs-0.5.8.2 spec/spec_helper.rb
eyeballs-0.5.8.1 spec/spec_helper.rb
eyeballs-0.5.8 spec/spec_helper.rb
eyeballs-0.5.7.2 spec/spec_helper.rb
eyeballs-0.5.7.1 spec/spec_helper.rb
eyeballs-0.5.7 spec/spec_helper.rb
eyeballs-0.5.6.1 spec/spec_helper.rb