test/test_hoe.rb in hoe-3.9.0 vs test/test_hoe.rb in hoe-3.10.0
- old
+ new
@@ -203,34 +203,34 @@
end
end
def test_parse_urls_ary
ary = ["* https://github.com/seattlerb/hoe",
- "* http://seattlerb.rubyforge.org/hoe/",
- "* http://seattlerb.rubyforge.org/hoe/Hoe.pdf",
+ "* http://docs.seattlerb.org/hoe/",
+ "* http://docs.seattlerb.org/hoe/Hoe.pdf",
"* http://github.com/jbarnette/hoe-plugin-examples"].join "\n"
exp = ["https://github.com/seattlerb/hoe",
- "http://seattlerb.rubyforge.org/hoe/",
- "http://seattlerb.rubyforge.org/hoe/Hoe.pdf",
+ "http://docs.seattlerb.org/hoe/",
+ "http://docs.seattlerb.org/hoe/Hoe.pdf",
"http://github.com/jbarnette/hoe-plugin-examples"]
assert_equal exp, hoe.parse_urls(ary)
end
def test_parse_urls_hash
hash = [
"home :: https://github.com/seattlerb/hoe",
- "rdoc :: http://seattlerb.rubyforge.org/hoe/",
- "doco :: http://seattlerb.rubyforge.org/hoe/Hoe.pdf",
+ "rdoc :: http://docs.seattlerb.org/hoe/",
+ "doco :: http://docs.seattlerb.org/hoe/Hoe.pdf",
"other :: http://github.com/jbarnette/hoe-plugin-examples",
].join "\n"
exp = {
"home" => "https://github.com/seattlerb/hoe",
- "rdoc" => "http://seattlerb.rubyforge.org/hoe/",
- "doco" => "http://seattlerb.rubyforge.org/hoe/Hoe.pdf",
+ "rdoc" => "http://docs.seattlerb.org/hoe/",
+ "doco" => "http://docs.seattlerb.org/hoe/Hoe.pdf",
"other" => "http://github.com/jbarnette/hoe-plugin-examples",
}
assert_equal exp, hoe.parse_urls(hash)
end
@@ -249,12 +249,12 @@
urls = {
"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",
+ "rdoc" => "http://docs.seattlerb.org/hoe/",
+ "doco" => "http://docs.seattlerb.org/hoe/Hoe.pdf",
"other" => "http://github.com/jbarnette/hoe-plugin-examples",
}
assert_equal urls, hoe.urls
@@ -272,23 +272,19 @@
assert_equal text_files, spec.extra_rdoc_files
assert_equal files.sort, spec.files.sort
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)
assert_equal files.grep(/^test/).sort, spec.test_files.sort
deps = spec.dependencies.sort_by { |dep| dep.name }
expected = [
["hoe", :development, "~> #{Hoe::VERSION.sub(/\.\d+$/, '')}"],
["rdoc", :development, "~> 4.0"],
]
-
- expected << ["rubyforge", :development, ">= #{::RubyForge::VERSION}"] if
- defined? ::RubyForge
assert_equal expected, deps.map { |dep|
[dep.name, dep.type, dep.requirement.to_s]
}
end