Sha256: bc7df05660863b2bafb5d728c9c6382b2c587186f71636f0700adcff5c276cc0

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reap-9.4.0 test/case/test_scaffold.rb