Mathieu
Mathieu

Reputation: 4787

No DRb server is running. Running in local process instead ...(Rails 4/Zeus/guard/rspec 3)

I have just switched from using Spork with Guard to using Zeus

I used this step by step guide: http://blog.blenderbox.com/2014/04/10/testing-rails-3-with-guard-and-zeus/

The thing, is now my routine is

My tests are working fine but I'm very surprised that rspec test suite has gotten slower than with Spork as most people say it's a huge boost in test speed.

What also makes me really think there's a bug is that when I type rspec, it displays a message reading what's below before running tests:

No DRb server is running. Running in local process instead

Somebody got an idea what's the problem ?

thanks

guardfile

require 'active_support/core_ext'

require 'active_support/inflector'

# NEw ZEUS guard
# source - blog.blenderbox.com/2014/04/10/testing-rails-3-with-guard-and-zeus/
guard 'zeus-client', :all_on_start => false, :all_after_pass => false do
  ignore %r{^\.zeus\.sock$}

  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 features specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$})     { |m| "spec/features/#{m[1]}_spec.rb" }

guard 'rails-assets', :run_on => [:start, :change] do
  watch(%r{^app/assets/.+$})
  watch('config/application.rb')  
end

Upvotes: 1

Views: 2806

Answers (1)

Simon Peck
Simon Peck

Reputation: 517

You may have the --drb option set in your .rspec file. Delete that line.

Upvotes: 9

Related Questions