minitest-reporters 0.14.0 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -158,7 +158,7 @@ module MiniTest
158
158
  end
159
159
 
160
160
  def after_test(result)
161
- time = Time.now - runner.test_start_time
161
+ time = Time.now - (runner.test_start_time || Time.now)
162
162
  @test_times << [@test_name, time]
163
163
 
164
164
  print '%.2f s = ' % time if verbose?
@@ -105,7 +105,7 @@ module MiniTest
105
105
  end
106
106
 
107
107
  def print_test_with_time(suite, test)
108
- total_time = Time.now - runner.test_start_time
108
+ total_time = Time.now - (runner.test_start_time || Time.now)
109
109
  print(" %s#%s (%.2fs)%s" % [suite, test, total_time, clr])
110
110
  end
111
111
 
@@ -50,7 +50,7 @@ module MiniTest
50
50
  private
51
51
 
52
52
  def print_test_with_time(suite, test)
53
- total_time = Time.now - runner.test_start_time
53
+ total_time = Time.now - (runner.test_start_time || Time.now)
54
54
  print(" #{suite}##{test} (%.2fs)" % total_time)
55
55
  end
56
56
 
@@ -133,7 +133,7 @@ else
133
133
  end
134
134
 
135
135
  def test_finished(test, test_runner)
136
- duration_ms = get_current_time_in_ms() - get_time_in_ms(runner.test_start_time)
136
+ duration_ms = get_current_time_in_ms() - get_time_in_ms(runner.test_start_time || Time.now)
137
137
 
138
138
  begin
139
139
  if block_given?
@@ -71,7 +71,7 @@ module MiniTest
71
71
  private
72
72
 
73
73
  def print_time(test)
74
- total_time = Time.now - runner.test_start_time
74
+ total_time = Time.now - (runner.test_start_time || Time.now)
75
75
  print(" (%.2fs)" % total_time)
76
76
  end
77
77
 
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Reporters
3
- VERSION = "0.14.0"
3
+ VERSION = "0.14.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-reporters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-27 00:00:00.000000000 Z
12
+ date: 2012-12-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  segments:
165
165
  - 0
166
- hash: -807798255971397869
166
+ hash: -4561366707573626439
167
167
  required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  none: false
169
169
  requirements:
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  segments:
174
174
  - 0
175
- hash: -807798255971397869
175
+ hash: -4561366707573626439
176
176
  requirements: []
177
177
  rubyforge_project: minitest-reporters
178
178
  rubygems_version: 1.8.24