Skip to content

Instantly share code, notes, and snippets.

@dave-shawley
Last active December 28, 2015 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dave-shawley/7515119 to your computer and use it in GitHub Desktop.
Save dave-shawley/7515119 to your computer and use it in GitHub Desktop.
BATS integration tests for an nginx recipe
@test "nginx is installed" {
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
test -n "$(which nginx)"
}
@test "default site is disabled" {
test ! -e /etc/nginx/sites-enabled/default
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment