Sha256: da8f23e95050e2492fb5a7c2db54d45de37d819f084fa1906f668285708bf72d

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 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')

    assert_raises RuntimeError do
      Pyro.burn
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pyro-1.0.0.rc4 test/test_pyro.rb
pyro-1.0.0.rc3 test/test_pyro.rb
pyro-1.0.0.rc2 test/test_pyro.rb
pyro-1.0.0.rc1 test/test_pyro.rb