Sha256: df4ad882c25786d7957b925d5933c3fed574ef9f347fe673229e4f831f83a7bb

Contents?: true

Size: 798 Bytes

Versions: 1

Compression:

Stored size: 798 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"].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.2 test/test_helper.rb