test/test_hoe.rb in hoe-1.1.7 vs test/test_hoe.rb in hoe-1.2.0
- old
+ new
@@ -12,15 +12,36 @@
##
# Yes, these tests suck, but it is damn hard to test this since
# everything is forked out.
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 announce check_manifest clean debug_gem default docs email gem install install_gem multi package post_news publish_docs release ridocs test test_deps uninstall)
+ boring = %w(clobber_docs clobber_package redocs repackage)
+ expected = %w(audit
+ announce
+ check_manifest
+ clean
+ config_hoe
+ debug_gem
+ default
+ docs
+ email
+ 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.map { |t| t.name }.sort
+ tasks = Rake.application.tasks
+ public_tasks = tasks.reject { |t| t.comment.nil? }.map { |t| t.name }.sort
- assert_equal expected.sort, tasks
+ assert_equal expected.sort, public_tasks
end
end