Skip to content

Commit

Permalink
Merge pull request #4 from y-yagi/fix_ZeroDivisionError
Browse files Browse the repository at this point in the history
prevent `ZeroDivisionError`
  • Loading branch information
y-yagi committed May 8, 2016
2 parents 821ede6 + 97607b9 commit a1c1378
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

* Prevent raising `ZeroDivisionError`

## 0.2.0

* Add support for Rails 5
1 change: 1 addition & 0 deletions lib/minitest/test_profile/reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def slow_tests_total_time
end

def ratio
return 0.0 if @calculated_total_time == 0
(slow_tests_total_time / @calculated_total_time) * 100
end

Expand Down

0 comments on commit a1c1378

Please sign in to comment.