all_after_pass: true does not run all specs even if failed one's just passed #233

dima4p opened this Issue Dec 23, 2013 · 6 comments


None yet

5 participants

dima4p commented Dec 23, 2013

kubuntu 12.04LTS guard (2.2.4) rails (4.0.1) does not run all specs even if failed one's just passed

dima4p commented Dec 23, 2013

guard :rspec, all_after_pass: true do
watch(%r{^lib/(.+).rb$}) {|m| "spec/lib/#{m[1]}_spec.rb"}
watch('spec/spec_helper.rb') {"spec"}

Rails example

watch(%r{^app/(.+).rb$}) {|m| "spec/#{m[1]}_spec.rb"}
watch(%r{^app/(.*)(.erb|.haml|.slim|\jbuilder)$}){|m| "spec/#{m[1]}#{m[2]}spec.rb"}
(controller).rb$}) {|m| ["spec/routing/#{m[1]}routing_spec.rb", "spec/#{m[2]}s/#{m[1]}#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb", "spec/requests/#{m[1]}_spec.rb"]}
watch(%r{^app/models/ability.rb$}) {["spec/controllers", "spec/acceptance", "spec/requests"]}
watch(%r{^spec/support/(.+).rb$}) { "spec"}
watch('config/routes.rb') {"spec/routing"}
watch('app/controllers/application_controller.rb') {"spec/controllers"}

Capybara features specs

watch(%r{^app/views/(.+)/.*.(erb|haml|slim)$}) {|m| "spec/features/#{m[1]}_spec.rb"}

Turnip features and steps

watch(%r{^spec/acceptance/steps/(.+)_steps.rb$}) {|m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance'}

907th commented Dec 24, 2013

Hello, @dima4p! all_after_pass works for me, even with your Guardfile. Could you provide a sample app for this issue? Thanks!


I can confirm this issue exists. I am using Mac OSX Mavericks, Rails 4.0.2, Ruby 2.1.0, and a brand new clean application with just a couple of tests.

907th commented Jan 1, 2014

@joe-fallon Can you share your app with us and provide steps to reproduce the issue?


Could you try with Listen 2.7.3, thanks!

e2 commented Jun 12, 2015

I'm closing this because it seems old.

If you have problems with the newest version of Guard::RSpec, please open a new issue with an example Guardfile and/or spec file to reproduce if you can.

@e2 e2 closed this Jun 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment