hydra 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/TODO +3 -5
- data/VERSION +1 -1
- data/hydra.gemspec +1 -1
- data/lib/hydra/runner.rb +3 -3
- data/test/test_helper.rb +3 -0
- metadata +1 -1
data/TODO
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.1
|
data/hydra.gemspec
CHANGED
data/lib/hydra/runner.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
require 'test/unit'
|
2
2
|
require 'test/unit/testresult'
|
3
|
+
Test::Unit.run = true
|
4
|
+
|
3
5
|
module Hydra #:nodoc:
|
4
6
|
# Hydra class responsible for running test files.
|
5
7
|
#
|
@@ -15,9 +17,7 @@ module Hydra #:nodoc:
|
|
15
17
|
# parent) to send it messages on which files to execute.
|
16
18
|
def initialize(opts = {})
|
17
19
|
@io = opts.fetch(:io) { raise "No IO Object" }
|
18
|
-
@verbose = opts.fetch(:verbose) { false }
|
19
|
-
|
20
|
-
Test::Unit.run = true
|
20
|
+
@verbose = opts.fetch(:verbose) { false }
|
21
21
|
$stdout.sync = true
|
22
22
|
trace 'Booted. Sending Request for file'
|
23
23
|
|
data/test/test_helper.rb
CHANGED
@@ -7,6 +7,9 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
7
7
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
8
8
|
require 'hydra'
|
9
9
|
|
10
|
+
# Since Hydra turns off testing, we have to turn it back on
|
11
|
+
Test::Unit.run = false
|
12
|
+
|
10
13
|
class Test::Unit::TestCase
|
11
14
|
def target_file
|
12
15
|
File.expand_path(File.join(Dir.tmpdir, 'hydra_test.txt'))
|