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