Skip to content

Commit

Permalink
Make the test more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Sep 11, 2014
1 parent 788ad8c commit 61076b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/me/raynes/core_test.clj
Expand Up @@ -33,8 +33,9 @@
(expand-home (str "~" name)) => (file user)
(expand-home (format "~%s/foo" name)) => (file user "foo")))

(fact "Expand plain path just returns path"
(expand-home (str "melon" File/separator "peach")) => (io/file "melon" "peach"))
(fact "Expand a path w/o tilde just returns path"
(let [user (System/getProperty "user.home")]
(expand-home (str user File/separator "foo")) => (io/file user "foo")))

(fact (list-dir ".") => (has every? #(instance? File %)))

Expand Down

0 comments on commit 61076b5

Please sign in to comment.