summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-05 17:08:51 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-05 17:43:38 +0900
commitc6a52cffd13a42b4c95ccbdf7e32a7da25e494b7 (patch)
treef1004a061050bc726599661f4164b42fb3045f3f /spec
parentfa52a924aa418e363b191179b2ad3eba2506d559 (diff)
Separated `@counter` and `@tally` so that "-ft" works with "-j"
Diffstat (limited to 'spec')
-rw-r--r--spec/mspec/lib/mspec/runner/formatters/multi.rb13
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