From fc180a4521d38fb9f3876b819f26639a9c60d805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Mon, 26 Nov 2012 14:30:30 +0100 Subject: [PATCH] guard: minimize running all specs [ci skip] --- Guardfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Guardfile b/Guardfile index 6428dfdd777..6da0408e0f3 100644 --- a/Guardfile +++ b/Guardfile @@ -1,7 +1,7 @@ # A sample Guardfile # More info at https://github.com/guard/guard#readme # also, http://asciicasts.com/episodes/264-guard -guard 'rspec', :all_on_start => false do +guard 'rspec', :all_on_start => false, :all_after_pass => false do watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } watch('spec/spec_helper.rb') { "spec" } @@ -19,7 +19,7 @@ guard 'rspec', :all_on_start => false do watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } end -guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' }, :all_on_start => false , :wait => 70 do +guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' }, :all_on_start => false, :all_after_pass => false, :wait => 70 do watch('config/application.rb') watch('config/environment.rb') watch(%r{^config/environments/.+\.rb$}) @@ -31,7 +31,7 @@ guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAIL watch(%r{features/support/}) { :cucumber } end -guard 'cucumber', :all_on_start => false do +guard 'cucumber', :all_on_start => false, :all_after_pass => false do watch(%r{^features/.+\.feature$}) watch(%r{^features/support/.+$}) { 'features' } watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }