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