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

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/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