Sha256: f61cb67b1e54b43dbcaa0260c8ffd2286cf4bd724d40cf8a736ec249c504c5f6

Contents?: true

Size: 509 Bytes

Versions: 15

Compression:

Stored size: 509 Bytes

Contents

# -*- encoding: utf-8 -*-

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

15 entries across 15 versions & 3 rubygems

Version Path
gettalong-webgen-0.5.7.20090227 test/test_webgentask.rb
gettalong-webgen-0.5.8.20090507 test/test_webgentask.rb
gettalong-webgen-0.5.9.20090620 test/test_webgentask.rb
gettalong-webgen-0.5.9.20090626 test/test_webgentask.rb
thewoolleyman-webgen-0.5.8.20090419 test/test_webgentask.rb
webgen-0.5.17 test/test_webgentask.rb
webgen-0.5.15 test/test_webgentask.rb
webgen-0.5.14 test/test_webgentask.rb
webgen-0.5.13 test/test_webgentask.rb
webgen-0.5.12 test/test_webgentask.rb
webgen-0.5.11 test/test_webgentask.rb
webgen-0.5.10 test/test_webgentask.rb
webgen-0.5.9 test/test_webgentask.rb
webgen-0.5.7 test/test_webgentask.rb
webgen-0.5.8 test/test_webgentask.rb