Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
37 lines (30 sloc) 0.756 kb
#!/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.
if test $roundup_test_name = "it_hath_not_path_before_thy"
then PATH=
fi
}
after() {
# Try messing with the $PATH in `after`
if test $roundup_test_name = "it_hath_path_til_after"
then PATH=
fi
}
it_is_in_tmp() {
test "$(pwd)" = "/tmp"
}
it_hath_path_til_after() {
command -v ls >/dev/null
}
it_hath_not_path_before_thy() {
! command -v ls >/dev/null
}
Jump to Line
Something went wrong with that request. Please try again.