Sha256: 1203c4273d2fd49676270ff7dd2d7e5c660fd6e43559dd616fdff84398420d28

Contents?: true

Size: 668 Bytes

Versions: 7

Compression:

Stored size: 668 Bytes

Contents

require "drb/drb"

module Spec
  module Runner
    # Facade to run specs by connecting to a DRB server
    class DrbCommandLine
      # 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.
      def self.run(argv, stderr, stdout, exit=true, warn_if_no_files=true)
        begin
          DRb.start_service
          spec_server = DRbObject.new_with_uri("druby://localhost:8989")
          spec_server.run(argv, stderr, stdout)
        rescue DRb::DRbConnError
          stderr.puts "No server is running"
          exit 1 if exit
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
has_finder-0.1.1 spec/rails/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
has_finder-0.1.2 spec/rails/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
has_finder-0.1.3 spec/rails/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
rspec-1.0.5 lib/spec/runner/drb_command_line.rb
rspec-1.0.8 lib/spec/runner/drb_command_line.rb
rspec-1.0.6 lib/spec/runner/drb_command_line.rb
rspec-1.0.7 lib/spec/runner/drb_command_line.rb