test/test_hoe.rb in hoe-1.8.3 vs test/test_hoe.rb in hoe-1.9.0
- old
+ new
@@ -12,30 +12,39 @@
##
# 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)
+ boring = %w(clobber_docs
+ clobber_package
+ clobber_rcov
+ gem
+ redocs
+ repackage)
expected = %w(audit
announce
+ check_extra_deps
check_manifest
clean
config_hoe
debug_gem
default
deps:email
deps:fetch
deps:list
docs
email
+ flay
+ flog
generate_key
install_gem
multi
package
post_blog
post_news
publish_docs
+ rcov
release
ridocs
test
test_deps)
expected += boring
@@ -61,20 +70,22 @@
files = File.read("Manifest.txt").split(/\n/)
spec = hoe.spec
+ text_files = files.grep(/txt$/).reject { |f| f =~ /template/ }
+
assert_equal 'blah', spec.name
assert_equal '1.2.3', spec.version.to_s
assert_equal '>= 0', spec.required_rubygems_version.to_s
assert_equal ['author'], spec.authors
assert_equal t, spec.date
assert_equal 'sow', spec.default_executable
assert_match(/Hoe.*Rakefiles/, spec.description)
assert_equal ['email'], spec.email
assert_equal ['sow'], spec.executables
- assert_equal files.grep(/txt$/), spec.extra_rdoc_files
+ assert_equal text_files, spec.extra_rdoc_files
assert_equal files, spec.files
assert_equal true, spec.has_rdoc
assert_equal "http://rubyforge.org/projects/seattlerb/", spec.homepage
assert_equal ['--main', 'README.txt'], spec.rdoc_options
assert_equal ['lib'], spec.require_paths