require 'test/unit/testcase' require 'hoe' $rakefile = nil # shuts up a warning in rdoctask.rb class TestHoe < Test::Unit::TestCase def setup Rake.application.clear end def test_basics boring = %w(clobber clobber_docs clobber_package doc doc/index.html pkg pkg/blah-1.0.0 pkg/blah-1.0.0.gem pkg/blah-1.0.0.tgz redocs repackage) expected = %w(audit clean debug_gem default docs gem install multi package publish_docs release ridocs test uninstall) expected += boring Hoe.new('blah', '1.0.0') tasks = Rake.application.tasks.map { |t| t.name }.sort assert_equal expected.sort, tasks end end