Skip to content

Instantly share code, notes, and snippets.

@msonnabaum
Created January 13, 2011 03:43
Show Gist options
  • Save msonnabaum/777346 to your computer and use it in GitHub Desktop.
Save msonnabaum/777346 to your computer and use it in GitHub Desktop.
Test using roundup for drush cli testing.
#!/usr/bin/env roundup
describe drush
before() {
__DIR__="$PWD"
rm -rf .sandbox
mkdir -p .sandbox
cd .sandbox
}
after() {
rm -rf "$__DIR__/.sandbox"
}
it_will_print_version() {
version=$(drush version --pipe)
test "$version" = "5.0-dev"
}
it_will_download_a_project() {
drush pm-download devel
test -d devel
test -f devel/README.txt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment