test-unit 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,3 +81,4 @@ h2. Thanks
81
81
  * grafi-tt: A bug fix.
82
82
  * Jeremy Stephens: A bug report.
83
83
  * Hans de Graaff: Bug reports.
84
+ * James Mead: A bug report.
@@ -1,3 +1,5 @@
1
+ require "fileutils"
2
+
1
3
  module Test
2
4
  module Unit
3
5
  module Priority
@@ -18,7 +18,7 @@ module Test
18
18
  opts.on('-v', '--verbose=[LEVEL]', output_levels,
19
19
  "Set the output level (default is verbose).",
20
20
  "(#{auto_runner.keyword_display(output_levels)})") do |level|
21
- level ||= output_levels.assoc(:verbose)[1]
21
+ level ||= output_levels.assoc("verbose")[1]
22
22
  auto_runner.runner_options[:output_level] = level
23
23
  end
24
24
 
@@ -146,9 +146,13 @@ module Test
146
146
  end
147
147
 
148
148
  def categorize_faults
149
- @faults.group_by do |fault|
150
- categorize_fault(fault)
149
+ faults = {}
150
+ @faults.each do |fault|
151
+ category = categorize_fault(fault)
152
+ faults[category] ||= []
153
+ faults[category] << fault
151
154
  end
155
+ faults
152
156
  end
153
157
 
154
158
  def categorize_fault(fault)
@@ -355,7 +359,10 @@ module Test
355
359
  def output_progress_in_detail(fault)
356
360
  return if @output_level == SILENT
357
361
  return unless categorize_fault(fault) == :need_detail_faults
362
+ nl
363
+ nl
358
364
  output_fault(fault)
365
+ nl
359
366
  end
360
367
 
361
368
  def output?(level)
@@ -1,7 +1,5 @@
1
-
2
- # HACK: quick and dirty to get integrated into the new project - ryan
3
1
  module Test
4
2
  module Unit
5
- VERSION = '2.3.1'
3
+ VERSION = '2.3.2'
6
4
  end
7
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 3
9
- - 1
10
- version: 2.3.1
9
+ - 2
10
+ version: 2.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kouhei Sutou
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-06 00:00:00 Z
19
+ date: 2011-08-15 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: |