Skip to content

Instantly share code, notes, and snippets.

@nyku
Created December 3, 2015 10:03
Show Gist options
  • Save nyku/70df9472056b0992843a to your computer and use it in GitHub Desktop.
Save nyku/70df9472056b0992843a to your computer and use it in GitHub Desktop.
Run specs
ruby -e 'p `git status`.split("\n").select {|l|l.match("modified")}.map {|l|l.gsub(/\tmodified:\s+|app\/|\.rb/, "")}.delete_if {|l|l.match(/scss|yml|haml|_spec/)}.map {|l|"spec/#{l}_spec.rb"}.join(" ")' | xargs echo | xargs rspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment