Skip to content

Commit

Permalink
Some bitly-specific tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynes committed Oct 20, 2011
1 parent 6c4150a commit 9b9385d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/hobbit/bitly_test.clj
@@ -1,2 +1,11 @@
(ns hobbit.bitly-test
(:use [hobbit core bitly]))
(:use [hobbit core bitly utils]
clojure.test))


(def auth (:bitly (read-auth)))
(def long "http://blog.raynes.me")

(deftest shorten-test
(is (shorten (bitly-shortener (:key auth) (:login auth)) long))
(is (shorten (bitly-shortener (:key auth) (:login auth) "j.mp") long)))

0 comments on commit 9b9385d

Please sign in to comment.