dohtest 0.1.28 → 0.1.29

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dohtest/group_runner.rb +9 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c5d81dbb94a994d5d727be4c566c883ca6878bd
4
- data.tar.gz: 0f452f07219e1c2ee59a9dc7bf212f4bd816dd13
3
+ metadata.gz: 6c3755cc11d5b29e1bb452676ebc60a9b067729f
4
+ data.tar.gz: b7c39014b1dc4cc72bd720deba96262f7576c912
5
5
  SHA512:
6
- metadata.gz: e604db32c78abe51eba17451b1e5f9bc33ea7dd06f3a440c1d499ac9eafe31e39879b230061fc618e1168cf5050edc5b02552c5d09002b7e5757c0089e75d8d6
7
- data.tar.gz: 69e27277d90a4ff27eec59849b80dfde4c55298801759ecd2137bc5e09f3743b4e35c65f1506114d3e21cb80ca894c8595308c37a7713a5c6adddfbc8b854478
6
+ metadata.gz: 5a4ead9a33cbc1adae5eb3c4160ce8d2f85c33f257952e90b9b0b504f804102f0ddccba86e6ac40921fbc5404f9b1c22fa1c9faaccf9640e6a8e3c49af32df45
7
+ data.tar.gz: 783180920d5995f0d8ac4141a06fd9acc83bba2404379ac3e214761a6065d2cb3bf1503d1477d8e6038f12bd1e46ee64f9a6edda829aaf22b937038aa98f41d6
@@ -10,6 +10,9 @@ class GroupRunner
10
10
  @before_all_failed = false
11
11
  @error_count = @tests_ran = @tests_skipped = @assertions_failed = @assertions_passed = 0
12
12
  @test_name = 'no_test_name_set_yet'
13
+ @max_errors = nil
14
+ @max_failures = nil
15
+ @has_brink = false
13
16
  end
14
17
 
15
18
  def run
@@ -109,8 +112,12 @@ class GroupRunner
109
112
  end
110
113
 
111
114
  def setup_brink
112
- @max_errors = if @config.key?(:max_errors) then @config[:max_errors].to_i else nil end
113
- @max_failures = if @config.key?(:max_failures) then @config[:max_failures].to_i else nil end
115
+ if @config.key?(:max_errors) then
116
+ @max_errors = @config[:max_errors].to_i
117
+ end
118
+ if @config.key?(:max_failures) then
119
+ @max_failures = @config[:max_failures].to_i
120
+ end
114
121
  @has_brink = @max_errors || @max_failures
115
122
  end
116
123
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dohtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makani Mason
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-18 00:00:00.000000000 Z
12
+ date: 2013-10-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dohroot