Skip to content

Instantly share code, notes, and snippets.

@chanakasan
Last active August 29, 2015 13:58
Show Gist options
  • Save chanakasan/10018302 to your computer and use it in GitHub Desktop.
Save chanakasan/10018302 to your computer and use it in GitHub Desktop.
guard :shell do
watch(%r{^spec/.+Spec.php}) { |m|
system("clear")
system("bin/phpspec run --no-interaction --format=pretty #{m[0]}")
}
watch(%r{^src/(.+).php}) {
system("clear")
system("bin/phpspec run --no-interaction --format=pretty")
}
watch(%r{^src/(.+).feature}) { |m|
system("clear")
system("bin/behat")
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment