test/tc_shorturl.rb in shorturl-0.2.0 vs test/tc_shorturl.rb in shorturl-0.2.1

- old
+ new

@@ -28,10 +28,12 @@ # The short URL for shorl is never the same, so I just check to # see if the URL begins with their domain name assert ShortURL.shorten(@url, :shorl) =~ /^http:\/\/shorl.com\// assert ShortURL.shorten(@url, :snipurl) == "http://snipurl.com/fbkl" 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_raise(ArgumentError) { ShortURL.shorten(@url, :foobar) } end def test_get_short_url @@ -74,6 +76,15 @@ end def test_metamark assert_raise(NoMethodError) { ShortURL.metamark(@url) } end + + def test_makeashorterlink + assert_raise(NoMethodError) { ShortURL.makeashorterlink(@url) } + end + + def test_skinnylink + assert_raise(NoMethodError) { ShortURL.skinnylink(@url) } + end + end