diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-05 17:08:51 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-05 17:43:38 +0900 |
commit | c6a52cffd13a42b4c95ccbdf7e32a7da25e494b7 (patch) | |
tree | f1004a061050bc726599661f4164b42fb3045f3f /spec/mspec | |
parent | fa52a924aa418e363b191179b2ad3eba2506d559 (diff) | |
download | ruby-c6a52cffd13a42b4c95ccbdf7e32a7da25e494b7.tar.gz |
Separated `@counter` and `@tally` so that "-ft" works with "-j"
Diffstat (limited to 'spec/mspec')
-rw-r--r-- | spec/mspec/lib/mspec/runner/formatters/multi.rb | 13 |
1 files changed, 7 insertions, 6 deletions
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 |