Sha256: dd7fa8fa0b82b81204a36564e3387bcefe47aef01d75d8448eb8eddf65cd4830

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

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

$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

3 entries across 3 versions & 1 rubygems

Version Path
genit-2.1 spec/helper.rb
genit-2.0 spec/helper.rb
genit-1.0.1 spec/helper.rb