From c6a52cffd13a42b4c95ccbdf7e32a7da25e494b7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 5 Nov 2019 17:08:51 +0900 Subject: Separated `@counter` and `@tally` so that "-ft" works with "-j" --- spec/mspec/lib/mspec/runner/formatters/multi.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'spec/mspec/lib') diff --git a/spec/mspec/lib/mspec/runner/formatters/multi.rb b/spec/mspec/lib/mspec/runner/formatters/multi.rb index d0a82fe682..a723ae8eb9 100644 --- a/spec/mspec/lib/mspec/runner/formatters/multi.rb +++ b/spec/mspec/lib/mspec/runner/formatters/multi.rb @@ -5,7 +5,8 @@ module MultiFormatter end def multi_initialize - @counter = @tally = Tally.new + @tally = TallyAction.new + @counter = @tally.counter @timer = TimerAction.new @timer.start end @@ -31,11 +32,11 @@ module MultiFormatter if d # The file might be empty if the child process died @exceptions += Array(d['exceptions']) - @tally.files! d['files'] - @tally.examples! d['examples'] - @tally.expectations! d['expectations'] - @tally.errors! d['errors'] - @tally.failures! d['failures'] + @counter.files! d['files'] + @counter.examples! d['examples'] + @counter.expectations! d['expectations'] + @counter.errors! d['errors'] + @counter.failures! d['failures'] end end end -- cgit v1.2.3