Skip to content

Instantly share code, notes, and snippets.

@wikimatze
Created May 9, 2013
Embed
What would you like to do?
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