test/tc_shorturl.rb in shorturl-0.3.0 vs test/tc_shorturl.rb in shorturl-0.4.0

- old
+ new

@@ -23,9 +23,10 @@ assert ShortURL.shorten(@url, :metamark) == "http://xrl.us/ga8c" assert ShortURL.shorten(@url, :makeashorterlink) == "http://makeashorterlink.com/?O1752235A" assert ShortURL.shorten(@url, :skinnylink) == "http://skinnylink.com?nqvcce" assert ShortURL.shorten(@url, :linktrim) =~ /http:\/\/linktrim/ # Never the same URL assert ShortURL.shorten(@url, :shorterlink) == "http://shorterlink.com/?PQD096" + assert ShortURL.shorten(@url, :minilink) == "http://lnk.nu/darkhost.mine.nu:81/2zr.html" - assert_raise(ArgumentError) { ShortURL.shorten(@url, :foobar) } + assert_raise(InvalidService) { ShortURL.shorten(@url, :foobar) } end end