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

Version Path
webgen-1.7.3 test/webgen/test_rake_task.rb
webgen-1.7.2 test/webgen/test_rake_task.rb
webgen-1.7.1 test/webgen/test_rake_task.rb
webgen-1.7.0 test/webgen/test_rake_task.rb
webgen-1.6.0 test/webgen/test_rake_task.rb
webgen-1.5.2 test/webgen/test_rake_task.rb
webgen-1.5.1 test/webgen/test_rake_task.rb
webgen-1.5.0 test/webgen/test_rake_task.rb
webgen-1.4.1 test/webgen/test_rake_task.rb
webgen-1.4.0 test/webgen/test_rake_task.rb
webgen-1.3.0 test/webgen/test_rake_task.rb
webgen-1.2.1 test/webgen/test_rake_task.rb
webgen-1.2.0 test/webgen/test_rake_task.rb
webgen-1.1.0 test/webgen/test_rake_task.rb
webgen-1.0.0 test/webgen/test_rake_task.rb