Sha256: 846a561b9a07d1927846ae16fc3b328f6b60452b0edbe1225c0f8a7e8dfe5448

Contents?: true

Size: 666 Bytes

Versions: 16

Compression:

Stored size: 666 Bytes

Contents

$:.push File.join(File.dirname(__FILE__), '..', '..', '..', 'lib')

require 'redcar'
Redcar.environment = :test
Redcar.load_unthreaded

require File.dirname(__FILE__) + "/fixture_helper"

def write_dir_contents(dirname, files)
  FileUtils.mkdir_p(dirname)
  files.each do |filename, contents|
    if contents.is_a?(Hash)
      write_dir_contents(dirname + "/" + filename, contents)
    else
      File.open(dirname + "/" + filename, "w") {|f| f.print contents}
    end
  end
end

def write_file(dirname, file, content)
  File.open(File.join(dirname, file), "w") {|f| f.puts content }
end

def remove_file(dirname, file)
  FileUtils.rm_f(File.join(dirname, file))
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
redcar-dev-0.12.17dev plugins/project/spec/spec_helper.rb
redcar-dev-0.12.16dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.15dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.14dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.13dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.12dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.11dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.10dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.9dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.8dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.7dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.6dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.4dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.3dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.1dev-java plugins/project/spec/spec_helper.rb
redcar-dev-0.12.0dev-java plugins/project/spec/spec_helper.rb