Permalink
Browse files

update edge-case docs

  • Loading branch information...
1 parent 34ef8ad commit 8144c6a5ddc43db9ce640176ccc8389cb8bad903 @bmizerany committed Aug 4, 2010
Showing with 6 additions and 1 deletion.
  1. +5 −1 edge-test.sh
  2. +1 −0 index.html
View
6 edge-test.sh
@@ -1,10 +1,13 @@
+#!/usr/bin/env roundup
+
+# Explain
describe "Test edge cases that cannot throw off roundup"
before() {
# A `cd` in `before` cannot throw off roundup.
cd /tmp
-
# Mess with $PATH
+ #
# NOTE: Ordinarily, switching on the test name isn't ideal practice,
# we're messing with some strange edge-cases here, so I'm not to unhappy
# about it.
@@ -14,6 +17,7 @@ before() {
}
after() {
+ # Try messing with the $PATH in `after`
if test $roundup_test_name = "it_hath_path_til_after"
then PATH=
fi
View
1 index.html
@@ -66,6 +66,7 @@
<dt><a class='man-ref' href='roundup.sh.html'>roundup</a></dt>
<dt><a class='man-ref' href='roundup-5-test.sh.html'>roundup(5) test</a></dt>
<dt><a class='man-ref' href='roundup-1-test.sh.html'>roundup(1) test</a></dt>
+ <dt><a class='man-ref' href='edge-test.sh.html'>Edge case tests</a></dt>
</dl>

0 comments on commit 8144c6a

Please sign in to comment.