Class: RSpec::Core::Invocations::DRbWithFallback

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/core/invocations.rb

Instance Method Summary collapse

Instance Method Details

#call(options, err, out) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'lib/rspec/core/invocations.rb', line 16

def call(options, err, out)
  require 'rspec/core/drb'
  begin
    return DRbRunner.new(options).run(err, out)
  rescue DRb::DRbConnError
    err.puts "No DRb server is running. Running in local process instead ..."
  end
  RSpec::Core::Runner.new(options).run(err, out)
end