From ff6cb1bc059d880368480a847b50f4aceb1e48a1 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 3 Apr 2024 13:27:39 +0100 Subject: [PATCH] DEV: Fix turbo_rspec formatters by sending real 'Start' notification (#26487) --- lib/turbo_tests/documentation_formatter.rb | 1 + lib/turbo_tests/reporter.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/turbo_tests/documentation_formatter.rb b/lib/turbo_tests/documentation_formatter.rb index a9ded17108e..91b25c12c80 100644 --- a/lib/turbo_tests/documentation_formatter.rb +++ b/lib/turbo_tests/documentation_formatter.rb @@ -13,6 +13,7 @@ module TurboTests ) def start(*args) + super(*args) output.puts "::group:: Verbose turbo_spec output" if ENV["GITHUB_ACTIONS"] end diff --git a/lib/turbo_tests/reporter.rb b/lib/turbo_tests/reporter.rb index 5204ff0e0ce..b2a1e2e1eb8 100644 --- a/lib/turbo_tests/reporter.rb +++ b/lib/turbo_tests/reporter.rb @@ -49,7 +49,7 @@ module TurboTests end def start - delegate_to_formatters(:start, RSpec::Core::Notifications::NullNotification) + delegate_to_formatters(:start, RSpec::Core::Notifications::StartNotification.new) end def example_passed(example)