From 5d2b127c82172463af2469bfce3d99f545002468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20=C4=8Cupi=C4=87?= Date: Mon, 29 Jan 2024 12:58:31 +0100 Subject: [PATCH] Show actual assert count next to expected count (#561) --- lib/turbo/broadcastable/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/turbo/broadcastable/test_helper.rb b/lib/turbo/broadcastable/test_helper.rb index c26d487d..f5e97017 100644 --- a/lib/turbo/broadcastable/test_helper.rb +++ b/lib/turbo/broadcastable/test_helper.rb @@ -64,7 +64,7 @@ def assert_turbo_stream_broadcasts(stream_name_or_object, count: nil, &block) else broadcasts = "Turbo Stream broadcast".pluralize(count) - assert count == payloads.count, "Expected #{count} #{broadcasts} on #{stream_name.inspect}, but there were none" + assert count == payloads.count, "Expected #{count} #{broadcasts} on #{stream_name.inspect}, but there were #{payloads.count}" end end