Sha256: 5c2444ef1038399d576df85d8c9185517fe0232f46f7b1b81c295146791153f2

Contents?: true

Size: 482 Bytes

Versions: 11

Compression:

Stored size: 482 Bytes

Contents

require 'test/unit'
require 'webgen/webgentask'

class TestWebgenTask < Test::Unit::TestCase

  include Rake

  def test_create
    site = Webgen::WebgenTask.new('doit') do |s|
      s.clobber_outdir = true
      s.config_block = lambda {|c| c}
      s.directory = 'website'
    end
    assert_equal('website', site.directory)
    assert_equal(true, site.clobber_outdir)
    assert_equal(5, site.config_block[5])
    assert(Task['doit'])
    assert(Task['clobber_doit'])
  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.4.20080929 test/test_webgentask.rb
gettalong-webgen-0.5.5.20081001 test/test_webgentask.rb
gettalong-webgen-0.5.5.20081010 test/test_webgentask.rb
gettalong-webgen-0.5.5.20081012 test/test_webgentask.rb
gettalong-webgen-0.5.6.20081020 test/test_webgentask.rb
webgen-0.5.4 test/test_webgentask.rb
webgen-0.5.3 test/test_webgentask.rb
webgen-0.5.2 test/test_webgentask.rb
webgen-0.5.1 test/test_webgentask.rb
webgen-0.5.6 test/test_webgentask.rb
webgen-0.5.5 test/test_webgentask.rb