test/tc_shorturl.rb in shorturl-0.8.1 vs test/tc_shorturl.rb in shorturl-0.8.2

- old
+ new

@@ -12,11 +12,12 @@ def url? self[0..6].downcase == "http://" end end -class WWW::TestShortURL < Test::Unit::TestCase +class TestShortURL < Test::Unit::TestCase + include WWW def setup @url = "http://groups.google.com/group/comp.lang.ruby/" end def test_shorten @@ -24,9 +25,10 @@ assert ShortURL.shorten(@url).url? # All the services (I can't test exact URLs since they seem to # change semi regularly) ShortURL.valid_services.each do |service| + puts "Testing #{service}" assert ShortURL.shorten(@url, service).url? end # An invalid service assert_raise(InvalidService) { ShortURL.shorten(@url, :foobar) }