jish / pre-commit

A slightly improved pre-commit hook for git
https://jish.github.io/pre-commit/
Other
796 stars 96 forks source link

rspec focus check not picking up syntactic sugar versions of focus #205

Closed prpetten closed 8 years ago

prpetten commented 9 years ago

I typically just add 'f' to the beginning of my specs to add focus when I run guard. So 'describe' becomes 'fdescribe', 'context' becomes 'fcontext', and 'it' becomes 'fit'. This achieves the same result as adding :focus, but I don't want it in any of my commits either (nor does anyone else on my team).

prpetten commented 9 years ago

^ The above pull request should fix this issue once it is merged.

mpapis commented 8 years ago

closing in favor of #204 as it shows some code that can be reused (especially tests)