Skip to content

Instantly share code, notes, and snippets.

@filipebarcos
Created February 18, 2016 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipebarcos/9ab5c8695fe13097688a to your computer and use it in GitHub Desktop.
Save filipebarcos/9ab5c8695fe13097688a to your computer and use it in GitHub Desktop.
git diff --stat | grep spec | awk '{print $1}' ORS=' ' | xargs rspec
@filipebarcos
Copy link
Author

git diff --name-only spec/**/*_spec.rb | xargs bin/rspec
even better from @murbanski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment