-
-
Save fbjork/5277cb3666d07c958f34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guard 'spork', :rspec_env => { 'RAILS_ENV' => 'test' }, :wait => 50 do | |
watch('config/application.rb') | |
watch('config/environment.rb') | |
watch(%r{^config/environments/.+\.rb$}) | |
watch(%r{^config/initializers/.+\.rb$}) | |
watch(%r{^config/routes/.+\.rb$}) | |
watch('config/**/*.rb') | |
watch('config/routes.rb') | |
watch('spec/factories.rb') | |
watch('spec/routes.rb') | |
watch('spec/spec_helper.rb') | |
watch('spec/request_helpers.rb') | |
watch("spec/support/*.rb") | |
watch("spec/support/**/*.rb") | |
watch("spec/support/shared_context.rb") | |
end | |
guard 'rspec', :version => 2, :cli => '--drb --color --format doc', :all_after_pass => false do | |
watch('spec/spec_helper.rb') { "spec" } | |
watch('config/routes.rb') { "spec/routing" } | |
watch(%r{^config/routes/(.+)\.rb}) { "spec/routing" } | |
watch('app/controllers/application_controller.rb') { "spec/controllers" } | |
watch(%r{^spec/.+_spec\.rb}) | |
watch(%r{^app/(.+)\.rb}) { |m| "spec/#{m[1]}_spec.rb" } | |
watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
watch(%r{^app/controllers/(.+)_(controller)\.rb}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/acceptance/#{m[1]}_spec.rb", "spec/requests/#{m[1]}_spec.rb"] } | |
watch(%r{^app/views/(.+)/(.+)\.json.yajl}) { |m| ["spec/requests/#{m[1]}_spec.rb"] } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment