Sha256: 063c81483d7db06e1095eb4ad123dcb76172dd9df19934d685bedc4d6db44d72
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
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 ## # Yes, these tests suck, but it is damn hard to test this since # everything is forked out. def test_basics boring = %w(clobber_docs clobber_package gem redocs repackage) expected = %w(audit announce check_manifest clean config_hoe debug_gem default docs email generate_key install install_gem multi package post_blog post_news publish_docs release ridocs test test_deps uninstall) expected += boring Hoe.new('blah', '1.0.0') tasks = Rake.application.tasks public_tasks = tasks.reject { |t| t.comment.nil? }.map { |t| t.name }.sort assert_equal expected.sort, public_tasks end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hoe-1.3.0 | test/test_hoe.rb |
hoe-1.4.0 | test/test_hoe.rb |