Permalink
Browse files

remove unnecessary indirection

  • Loading branch information...
1 parent 192cd02 commit bf848ec7dd2e6f3b68fca3d7046f92c66eb75a7b @dchelimsky dchelimsky committed Jan 16, 2012
Showing with 3 additions and 13 deletions.
  1. +3 −13 lib/rspec/core/runner.rb
View
@@ -60,27 +60,17 @@ def self.run(args, err=$stderr, out=$stdout)
if options.options[:drb]
begin
- run_over_drb(options, err, out)
+ DRbCommandLine.new(options).run(err, out)
rescue DRb::DRbConnError
err.puts "No DRb server is running. Running in local process instead ..."
- run_in_process(options, err, out)
+ CommandLine.new(options).run(err, out)
end
else
- run_in_process(options, err, out)
+ CommandLine.new(options).run(err, out)
end
ensure
RSpec.reset
end
-
- def self.run_over_drb(options, err, out)
- DRbCommandLine.new(options).run(err, out)
- end
-
- def self.run_in_process(options, err, out)
- CommandLine.new(options, RSpec::configuration, RSpec::world).run(err, out)
- end
-
end
-
end
end

0 comments on commit bf848ec

Please sign in to comment.