Class: Spec::Runner::DrbCommandLine
- Defined in:
- lib/gems/rspec-1.1.12/lib/spec/runner/drb_command_line.rb
Overview
Facade to run specs by connecting to a DRB server
Class Method Summary collapse
-
.run(options) ⇒ Object
Runs specs on a DRB server.
Class Method Details
.run(options) ⇒ Object
Runs specs on a DRB server. Note that this API is similar to that of CommandLine - making it possible for clients to use both interchangeably.
9 10 11 12 13 14 15 16 17 |
# File 'lib/gems/rspec-1.1.12/lib/spec/runner/drb_command_line.rb', line 9 def self.run() begin DRb.start_service spec_server = DRbObject.new_with_uri("druby://127.0.0.1:8989") spec_server.run(.argv, .error_stream, .output_stream) rescue DRb::DRbConnError => e .error_stream.puts "No server is running" end end |