Sha256: f603678e1d68c91d4e1b721bf89af3052067979852a01ede219dfa6103db51ac

Contents?: true

Size: 836 Bytes

Versions: 1

Compression:

Stored size: 836 Bytes

Contents

require 'minitest/autorun'
require 'minitest/pride'
require 'coveralls'
Coveralls.wear!

require_relative "../lib/twitter_bot_generator.rb"

def wipe_such_test_bot! type='test'
  ["./such_#{type}_bot/Gemfile",
    "./such_#{type}_bot/README.md",
    "./such_#{type}_bot/test.rb",
    "./such_#{type}_bot/Procfile",
    "./such_#{type}_bot/bot.rb",
    "./such_#{type}_bot/spec.rb",
    "./such_#{type}_bot/test/such_#{type}_bot_test.rb",
    "./such_#{type}_bot/lib/greetings.txt",
    "./such_#{type}_bot/src/such_#{type}_bot.rb",
    "./such_#{type}_bot/.gitignore",
    "./such_#{type}_bot/.travis.yml"].each { |file| File.unlink file if File.exists? file }

  ["./such_#{type}_bot/lib",
    "./such_#{type}_bot/src",
    "./such_#{type}_bot/test",
    "./such_#{type}_bot"].each { |dir| Dir.rmdir dir if Dir.exists? dir}
  true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_bot_generator-0.2.3 test/test_helper.rb