Class: Pelusa::RubyReporter

Inherits:
Reporter show all
Defined in:
lib/pelusa/reporters/ruby_reporter.rb

Instance Method Summary collapse

Methods inherited from Reporter

#initialize, print_banner, #reports=, #successful?

Constructor Details

This class inherits a constructor from Pelusa::Reporter

Instance Method Details

#reportObject


5
6
7
8
9
10
11
12
13
# File 'lib/pelusa/reporters/ruby_reporter.rb', line 5

def report
  hash = @reports.inject({}) do |acc, report|
    class_name = report.class_name
    acc[class_name] = hashify_report(report)
    acc
  end
  hash[:filename] = @filename unless hash.empty?
  hash
end