Skip to content

Commit

Permalink
minor visual cleanup
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 8655]
  • Loading branch information
zenspider committed Jun 5, 2013
1 parent 56e992a commit a7bb6ec
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lib/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,9 @@ def record result # :nodoc:
end

##
# A reporter that gathers statistics about a test run. Does not
# do any IO because meant to be used as a parent class for a
# reporter that does.
# A reporter that gathers statistics about a test run. Does not do
# any IO because meant to be used as a parent class for a reporter
# that does.
#
# If you want to create an entirely different type of output (eg,
# CI, HTML, etc), this is the place to start.
Expand Down Expand Up @@ -477,14 +477,13 @@ def record result # :nodoc:
end

def report # :nodoc:
self.total_time = Time.now - start_time

aggregate = results.group_by { |r| r.failure.class }
aggregate.default = [] # dumb. group_by should provide this

self.failures = aggregate[Assertion].size
self.errors = aggregate[UnexpectedError].size
self.skips = aggregate[Skip].size
self.total_time = Time.now - start_time
self.failures = aggregate[Assertion].size
self.errors = aggregate[UnexpectedError].size
self.skips = aggregate[Skip].size
end
end

Expand Down

0 comments on commit a7bb6ec

Please sign in to comment.