test-unit-runner-failfast 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,8 +50,8 @@ class FailFastRunner < Test::Unit::UI::Console::TestRunner
50
50
 
51
51
  # Adds a char to the progress bar.
52
52
  def add_progress(i, char, priority=0)
53
- first_index = (i-1) * @bar_length / @suite.size
54
- last_index = i * @bar_length / @suite.size
53
+ first_index = ((i-1) * @bar_length / @suite.size).to_i
54
+ last_index = (i * @bar_length / @suite.size).to_i
55
55
  # Don't override E's!
56
56
 
57
57
  (first_index..last_index).each do |index|
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: test-unit-runner-failfast
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rico Sta. Cruz
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-23 00:00:00 +08:00
13
+ date: 2011-05-05 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  requirements: []
61
61
 
62
62
  rubyforge_project:
63
- rubygems_version: 1.5.0
63
+ rubygems_version: 1.6.2
64
64
  signing_key:
65
65
  specification_version: 3
66
66
  summary: A Test::Unit runner that shows errors first.