Sha256: 9399b460b5d5c8aad4e7281cddbcb8cfcc4133958d67f09c6f113d8c694127db
Contents?: true
Size: 505 Bytes
Versions: 15
Compression:
Stored size: 505 Bytes
Contents
# -*- encoding: utf-8 -*- require 'minitest/autorun' require 'webgen/rake_task' class TestRakeTask < Minitest::Test include Rake def test_create site = Webgen::RakeTask.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 & 1 rubygems