Sha256: 3bc8e115d084e43ae133227f8c3790733632a75f6c39ca35148f105403d3a3e2
Contents?: true
Size: 876 Bytes
Versions: 2
Compression:
Stored size: 876 Bytes
Contents
require 'minitest/autorun' require 'minitest/pride' require 'coveralls' Coveralls.wear! require_relative "../lib/twitter_bot_generator.rb" def wipe_such_test_bot! ['./such_test_bot/Gemfile', './such_test_bot/README.md', './such_test_bot/test.rb', './such_test_bot/Procfile', './such_test_bot/bot.rb', './such_test_bot/spec.rb', './such_test_bot/test/such_test_bot_test.rb', './such_test_bot/lib/greetings.txt', './such_test_bot/src/such_test_bot.rb', './such_test_bot/.gitignore'].each { |file| File.unlink file if File.exists? file } ['./such_test_bot/lib', './such_test_bot/src', './such_test_bot/test', './such_test_bot'].each { |dir| Dir.rmdir dir if Dir.exists? dir} true end Minitest.after_run do # leave behind a default scaffold ALWAYS wipe_such_test_bot! TwitterBotGenerator.generate 'such_test_bot' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twitter_bot_generator-0.2.1 | test/test_helper.rb |
twitter_bot_generator-0.2.0 | test/test_helper.rb |