Skip to content

Commit

Permalink
not rerunning specs on pass
Browse files Browse the repository at this point in the history
  • Loading branch information
alg committed May 25, 2012
1 parent d08ee90 commit a643f84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Guardfile
@@ -1,7 +1,7 @@
# A sample Guardfile # A sample Guardfile
# More info at https://github.com/guard/guard#readme # More info at https://github.com/guard/guard#readme


guard 'rspec', :version => 1, :cli => "--color" do guard 'rspec', :version => 1, :cli => "--color", :all_after_pass => false do
watch(%r{^spec/.+_spec\.rb$}) watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" } watch('spec/spec_helper.rb') { "spec" }
Expand All @@ -13,6 +13,7 @@ guard 'rspec', :version => 1, :cli => "--color" do
watch(%r{^spec/support/(.+)\.rb$}) { "spec" } watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch('config/routes.rb') { "spec/routing" } watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" } watch('app/controllers/application_controller.rb') { "spec/controllers" }

# Capybara request specs # Capybara request specs
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
end end

0 comments on commit a643f84

Please sign in to comment.