Sha256: 72cafcebf65805f0a9e52dbfbb86ea76e601e65c3acf181392d94cfcb589a565

Contents?: true

Size: 597 Bytes

Versions: 1

Compression:

Stored size: 597 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pyro-1.0.0.rc5 test/test_pyro.rb