Sha256: 1b6db271e77b6e5488a8ff38a1557bef2c96dc2eeba470f1fdeeb34e9163dda7
Contents?: true
Size: 1.24 KB
Versions: 5
Compression:
Stored size: 1.24 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_gem multi package post_blog post_news publish_docs release ridocs test test_deps) expected += boring spec = Hoe.new('blah', '1.0.0') do |h| h.developer("name", "email") end assert_equal ["name"], spec.author assert_equal ["email"], spec.email 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
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
radiant-1.0.0 | ruby-debug/ruby/1.8/gems/hoe-1.5.1/test/test_hoe.rb |
hoe-1.5.3 | test/test_hoe.rb |
hoe-1.6.0 | test/test_hoe.rb |
hoe-1.5.1 | test/test_hoe.rb |
hoe-1.5.2 | test/test_hoe.rb |