Sha256: 7420d70bec16c38acc37597b681f065b2ba8ce56433cdc4269871322643a0031

Contents?: true

Size: 704 Bytes

Versions: 2

Compression:

Stored size: 704 Bytes

Contents

require File.dirname(__FILE__) + '/helper'
require "test/unit"

module Reap
module TestCases

  class TestScaffold < Test::Unit::TestCase

    include CaseTestable

    def setup
      super
      @dirname = 'scaffold'
      @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(TEMPDIR) do
        silently do
          system "sow reap #{@dirname}"
        end

        assert(File.directory?(@dirname), "did not scaffold")

        Dir.chdir(@dirname) do
          assert(File.exist?('README'), "README does not exist")
        end
      end
    end

  end

end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sow-0.5 test/unit/test_scaffold.rb
sow-0.4.0 test/unit/test_scaffold.rb