guard / guard-spork

Guard::Spork automatically manage Spork DRb servers
https://rubygems.org/gems/guard-spork
MIT License
296 stars 58 forks source link

Spork with drb makes RSpec to not work #60

Closed ghost closed 12 years ago

ghost commented 12 years ago

If I add the :cli => "--drb" to my guard block in Guardfile, Spork initializes well, but RSpec doesn't work, as it stays forever on the "Running all specs" step:

Guard could not detect any of the supported notification libraries.
Guard is now watching at '/Users/david/Sites/rails_tutorials/rails_tutorial'
Starting Spork for RSpec
NOTE: Gem.latest_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.latest_load_paths called from /Users/david/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.8.5/lib/spork.rb:112.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /Users/david/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:603.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /Users/david/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:603.
Using RSpec
Loading Spork.prefork block...
Spork is ready and listening on 8989!
Spork server for RSpec successfully started
Guard::RSpec is running, with RSpec 2!
Running all specs

If I delete :cli => "--drb" from the guard block in Guardfile, and add --drb in .rspec file, it works well:

Guard could not detect any of the supported notification libraries.
Guard is now watching at '/Users/david/Sites/rails_tutorials/rails_tutorial'
Starting Spork for RSpec
NOTE: Gem.latest_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.latest_load_paths called from /Users/david/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.8.5/lib/spork.rb:112.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /Users/david/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:603.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /Users/david/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:603.
Using RSpec
Loading Spork.prefork block...
Spork is ready and listening on 8989!
Spork server for RSpec successfully started
Guard::RSpec is running, with RSpec 2!
Running all specs
........

Finished in 1.97 seconds
8 examples, 0 failures
thibaudgg commented 12 years ago

It seems more an issue with guard-rspec no?

thibaudgg commented 12 years ago

Also try to set a notification library (or turn it off) to resolve Guard could not detect any of the supported notification libraries. .

ghost commented 12 years ago

Oops.... sorry!! My mistake to put here a guard-rspec issue! Thanks for the notification tip :)

ghost commented 12 years ago

@thibaudgg how can notifications be set to off? I have placed a :notification => false in the guard 'rspec' block, and it does not seem to work.

I have opened a new issue on the guard-rspec issues page about this.