Sha256: ae9ffc2277614798321368ae88a0118e2fc73c9b0388172d5770325c8432878a

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'coco'

$GENIT_PATH = File.expand_path(File.join(File.expand_path(File.dirname(__FILE__)), '..'))

require './lib/genit'
include Genit

TEST_REPOSITORY = 'spec/project-name'

def clean_test_repository
  Dir.foreach(TEST_REPOSITORY) do |file|
    next if (file == ".") or (file == "..")
    filename = File.join(TEST_REPOSITORY, file)
    FileUtils.remove_dir(filename) if File.directory?(filename)
    FileUtils.remove_file(filename) if File.file?(filename)
  end
end

def test_project_path
  File.expand_path('spec/project-name')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
genit-1.0 spec/helper.rb