class TestPyro < Minitest::Test def test_burn Pyro.burn('development', false, './templates/app') assert Dir.exists?('./templates/app/tmp') Pyro.burn('production', false, './templates/app') assert Dir.exists?('./templates/app/pkg') FileUtils.rm_rf('./templates/app/tmp') refute Dir.exists?('./templates/app/tmp') FileUtils.rm_rf('./templates/app/pkg') refute Dir.exists?('./templates/app/pkg') FileUtils.rm_rf('./templates/app/public') refute Dir.exists?('./templates/app/public') assert_raises RuntimeError do Pyro.burn end end end