Skip to content

Instantly share code, notes, and snippets.

@wikimatze
Created May 9, 2013 04:55
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 wikimatze/5545631 to your computer and use it in GitHub Desktop.
Save wikimatze/5545631 to your computer and use it in GitHub Desktop.
Guardfile for Padrino
guard :rspec do
# Padrino example
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^app/controllers/(.+)\.rb$}) { |m| "spec/app/controllers/#{m[1]}_controller_spec.rb" }
watch(%r{^models/(.+)\.rb$}) { |m| "spec/models/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment