Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: dchelimsky/rspec
base: master
...
head fork: thedarkone/rspec
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Dec 24, 2008
thedarkone Don't forget to send the spec files as well. a522146
Commits on Dec 25, 2008
thedarkone Retry a couple of times before giving up. This is useful with automat…
…icaly restarting spec_server (see my rspec-rails fork).
6e7612f
View
4 lib/spec/runner/drb_command_line.rb
@@ -7,11 +7,15 @@ 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(options)
+ retry_count = 30
+ try_counter = 0
begin
DRb.start_service
spec_server = DRbObject.new_with_uri("druby://127.0.0.1:8989")
spec_server.run(options.argv, options.error_stream, options.output_stream)
rescue DRb::DRbConnError => e
+ try_counter += 1
+ sleep(0.5) && retry if retry_count > try_counter
options.error_stream.puts "No server is running"
end
end
View
2  lib/spec/runner/option_parser.rb
@@ -186,7 +186,7 @@ def parse_drb(argv = nil)
return false unless is_drb
@options.examples_should_not_be_run
DrbCommandLine.run(
- self.class.parse(argv, @error_stream, @out_stream)
+ self.class.parse((@options.files + argv), @error_stream, @out_stream)
)
true
end

No commit comments for this range

Something went wrong with that request. Please try again.