require 'test/unit' require './test/lib/case_testable' module Reap module TestCases class TestScaffold < Test::Unit::TestCase include CaseTestable def setup super @dir = File.join(TEMPDIR, 'scaffold') FileUtils.rm_r(@dir) if File.exist?(@dir) FileUtils.cp_r(FIXTURE + '/scaffold', @dir) end def test_scaffold Dir.chdir(@dir) do silently do system "reap-scaffold" end assert(File.exist?('README'), "README does not exist") end end end end end