Skip to content

Instantly share code, notes, and snippets.

@aereal
Created December 7, 2011 17:32
Show Gist options
  • Select an option

  • Save aereal/1443711 to your computer and use it in GitHub Desktop.

Select an option

Save aereal/1443711 to your computer and use it in GitHub Desktop.
Guardfile for Spork x RSpec x Padrino
guard 'spork', rspec_env: { 'PADRINO_ENV' => 'test' } do
watch('config/apps.rb')
watch('config/boot.rb')
watch('config/database.rb')
watch('Gemfile')
watch('Gemfile.lock')
watch('spec/spec_helper.rb') { :rspec }
end
guard 'rspec', :version => 2 do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^app/(.+)\.rb$}) { |m| "spec/app/#{m[1]}_spec.rb" }
watch(%r{^models/(.+)\.rb$}) { |m| "spec/models/#{m[1]}_spec.rb" }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch('spec/spec_helper.rb') { "spec" }
end
@vladiim
Copy link
Copy Markdown

vladiim commented Mar 19, 2016

Thanks for this!

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