Skip to content

Commit

Permalink
cancel tinyurl test if 'url' is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
hayamiz committed Dec 28, 2009
1 parent 6f3bedd commit f5e0a35
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/test-twittering-mode.el
Expand Up @@ -93,10 +93,11 @@
(test-assert-string-equal "love+plus"
(twittering-percent-encode "love plus")))

(defcase tinyurl nil nil
(test-assert-string-equal "http://tinyurl.com/3xsrg5"
(twittering-tinyurl-get "http://example.com/example"))
)
(when (require 'url nil t)
(defcase tinyurl nil nil
(test-assert-string-equal "http://tinyurl.com/3xsrg5"
(twittering-tinyurl-get "http://example.com/example"))
))

(defcase case-string nil nil
(test-assert-string-equal "Kobayakawa"
Expand Down

0 comments on commit f5e0a35

Please sign in to comment.