test/test_hoe.rb in hoe-2.15.0 vs test/test_hoe.rb in hoe-2.16.0
- old
+ new
@@ -18,11 +18,12 @@
end
def setup
Rake.application.clear
- Hoe.instance_variable_set :@bad_plugins, []
+ Hoe.plugins.clear
+ Hoe.bad_plugins.clear
Hoe.instance_variable_set :@files, nil
Hoe.instance_variable_set :@found, nil
Hoe.instance_variable_set :@loaded, nil
Hoe.plugin :package
@@ -268,17 +269,19 @@
files = File.read("Manifest.txt").split(/\n/) + [".gemtest"]
spec = hoe.spec
urls = {
- "home" => "https://github.com/seattlerb/hoe",
+ "home" => "http://www.zenspider.com/projects/hoe.html",
+ "code" => "https://github.com/seattlerb/hoe",
+ "bugs" => "https://github.com/seattlerb/hoe/issues",
"rdoc" => "http://seattlerb.rubyforge.org/hoe/",
"doco" => "http://seattlerb.rubyforge.org/hoe/Hoe.pdf",
"other" => "http://github.com/jbarnette/hoe-plugin-examples",
}
- assert_equal "https://github.com/seattlerb/hoe", hoe.url
+ assert_equal urls["home"], hoe.url
assert_equal urls, hoe.urls
text_files = files.grep(/txt$/).reject { |f| f =~ /template/ }
assert_equal 'blah', spec.name
@@ -290,11 +293,10 @@
assert_match(/Hoe.*Rakefiles/, spec.description)
assert_equal ['email'], spec.email
assert_equal ['sow'], spec.executables
assert_equal text_files, spec.extra_rdoc_files
assert_equal files, spec.files
- assert_equal "https://github.com/seattlerb/hoe", spec.homepage
- # TODO: assert_equal "https://github.com/seattlerb/hoe", spec.metadata
+ assert_equal urls["home"], spec.homepage
assert_equal ['--main', 'README.txt'], spec.rdoc_options
assert_equal ['lib'], spec.require_paths
assert_equal 'blah', spec.rubyforge_project
assert_equal Gem::RubyGemsVersion, spec.rubygems_version
assert_match(/^Hoe.*Rakefiles$/, spec.summary)