I usually create a branch while working on a feature or bug. I found it helpful to add the following script to my path:
1 2 3
It’s quick and dirty, but effective. It asks git for a list of filenames that have changed in the current branch, filters them to find specs and runs them with rspec.