hydra 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/TODO CHANGED
@@ -1,10 +1,8 @@
1
1
  = Hydra TODO
2
2
 
3
- == Setup
4
-
5
- Provide a hydra:setup task to override to be run remotely before testing
6
-
7
-
3
+ Fix test runner output. Local runners are dumping test unit summaries
4
+ and it looks bad.
8
5
 
6
+ Add in a time report
9
7
 
10
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.0
1
+ 0.10.1
data/hydra.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hydra}
8
- s.version = "0.10.0"
8
+ s.version = "0.10.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nick Gauthier"]
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'))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Gauthier