Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples run only once #12

Open
nolamesa opened this issue Jul 12, 2012 · 2 comments
Open

Examples run only once #12

nolamesa opened this issue Jul 12, 2012 · 2 comments

Comments

@nolamesa
Copy link

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?

@jkutner
Copy link
Owner

jkutner commented Jul 12, 2012

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.

@nolamesa
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants