From 1681fa4511e28affb0b7ee25e9ed64df71df5e37 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Wed, 8 Oct 2014 12:17:30 +0000 Subject: [PATCH] Simplify report printing --- lib/mutant/reporter/cli.rb | 2 +- lib/mutant/reporter/cli/format.rb | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/mutant/reporter/cli.rb b/lib/mutant/reporter/cli.rb index 4f040d88..14820f23 100644 --- a/lib/mutant/reporter/cli.rb +++ b/lib/mutant/reporter/cli.rb @@ -71,7 +71,7 @@ module Mutant # @api private # def report(env) - format.write_report(env, output) + Printer::EnvResult.run(output, env) self end diff --git a/lib/mutant/reporter/cli/format.rb b/lib/mutant/reporter/cli/format.rb index b8699a67..5c47cb72 100644 --- a/lib/mutant/reporter/cli/format.rb +++ b/lib/mutant/reporter/cli/format.rb @@ -25,19 +25,6 @@ module Mutant # abstract_method :progress - # Write report - # - # @param [Result::Env] env - # @param [IO] output - # - # @return [String] - # - # @api private - # - def write_report(env, output) - Printer::EnvResult.run(output, env) - end - # Output abstraction to decouple tty? from buffer class Output include Concord.new(:tty, :buffer)