lib/mutant/reporter/cli/report/subject.rb in mutant-0.5.24 vs lib/mutant/reporter/cli/report/subject.rb in mutant-0.5.25
- old
+ new
@@ -3,25 +3,26 @@
class CLI
class Report
# Subject report printer
class Subject < self
- handle(Mutant::Runner::Subject)
delegate :subject, :failed_mutations
+ handle(Mutant::Result::Subject)
+
# Run report printer
#
# @return [self]
#
# @api private
#
def run
status(subject.identification)
- object.tests.each do |test|
+ subject.tests.each do |test|
puts("- #{test.identification}")
end
- object.failed_mutations.each(&method(:visit))
+ visit_collection(object.alive_mutation_results)
self
end
end # Subject
end # Report