0uuoaq
Last Updated: February 25, 2016
·
2.217K
· depy

git pre-commit hook - commit if all RSpec tests passed

If you or your colleages lack discipline to run tests first before commiting you can use this pre-commit hook which won't let you commit unless all RSpec test passed.

You can modify it easily to run any tests suite in any language you like.

Source on github: https://github.com/depy/my-git-hooks