Sha256: dc2820c1c75d567e0707eacd9f17e87e7893101367a0155e0c643e8d0ace5580
Contents?: true
Size: 614 Bytes
Versions: 60
Compression:
Stored size: 614 Bytes
Contents
require 'helper' module Nutella class TestCommandTemplate < MiniTest::Test # 1. Create a fake app # New.new.run ['test_app'] # Dir.chdir 'test_app' # Nutella::Install.new.run ['basic-ruby-bot', 'bot1'] # Dir.chdir '..' # 2. Perform tests # should 'this is my first test' do # Dir.chdir 'test_app' # # Test code here # Dir.chdir '..' # end # # should 'this is my second test' do # Dir.chdir 'test_app' # # Test code here # Dir.chdir '..' # end # 3. Cleanup # MiniTest.after_run { FileUtils.rm_r 'test_app' } end end
Version data entries
60 entries across 60 versions & 1 rubygems