Skip to content

Instantly share code, notes, and snippets.

@gsmendoza
Last active August 29, 2015 14:08
Show Gist options
  • Save gsmendoza/2616e96010bbf0a4e76d to your computer and use it in GitHub Desktop.
Save gsmendoza/2616e96010bbf0a4e76d to your computer and use it in GitHub Desktop.
Run specs modified since master commit.
guard 'rspec' do
watch(%r{^(app|config|lib|spec/support)/}) do
`git diff --name-only master`.split("\n").select do |path|
path =~ %r{spec/.*_spec.rb}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment