forked from semaperepelitsa/spork-minitest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5ffeeb
commit 6f8a040
Showing
1 changed file
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
#!/usr/bin/env ruby | ||
|
||
# These fix 1.8.7 test/unit results where a DRbUnknown is returned because the testdrb client doesn't have the classes | ||
# in its local namespace. (See issue #2) | ||
begin | ||
require 'minitest/unit' | ||
rescue LoadError | ||
# MiniTest is Ruby 1.9, and the classes below only exist in the pre 1.9 test/unit | ||
require 'test/unit/testresult' | ||
require 'test/unit/failure' | ||
end | ||
|
||
require 'minitest/unit' | ||
require 'drb' | ||
DRb.start_service("druby://127.0.0.1:0") # this allows Ruby to do some magical stuff so you can pass an output stream over DRb. | ||
|
||
# this allows Ruby to do some magical stuff so you can pass an output stream over DRb. | ||
DRb.start_service | ||
test_server = DRbObject.new_with_uri("druby://127.0.0.1:8988") | ||
result = test_server.run(ARGV, $stderr, $stdout) |