guard-jruby-rspec icon indicating copy to clipboard operation
guard-jruby-rspec copied to clipboard

Examples run only once

Open nolamesa opened this issue 13 years ago • 2 comments
trafficstars

Hi, I have the following issue: guard-jruby-rspec starts up correctly and runs all of my tests but when I hit return I just see

Run all
Running all specs

and then nothing happens. I cannot get the tests to rerun, not even by pressing reload in guard prompt. I am using guard 1.2.2 with guard-jruby-rspec 0.1.3. My JRuby is 1.6.7 (1.9 mode) and I have Java 1.6.0_33.

My Guardfile looks like this:

interactor :simple

guard 'jruby-rspec' do
  watch(%r{^spec/.+_spec\.rb$})
  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)$})                 { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(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"] }
  watch(%r{^spec/support/(.+)\.rb$})                  { "spec" }
  watch('config/routes.rb')                           { "spec/routing" }
  watch('app/controllers/application_controller.rb')  { "spec/controllers" }
  # Capybara request specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml)$})          { |m| "spec/requests/#{m[1]}_spec.rb" }
end

Any ideas?

nolamesa avatar Jul 12 '12 10:07 nolamesa

can you try with the latest code in master? I wonder if an error is getting suppressed, and there have been some improvements to that.

jkutner avatar Jul 12 '12 14:07 jkutner

Just tried with the code from master but no change...

nolamesa avatar Jul 12 '12 15:07 nolamesa