Skip to content

Commit

Permalink
Show actual assert count next to expected count (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteeyah authored Jan 29, 2024
1 parent 385ab1a commit 5d2b127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/turbo/broadcastable/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5d2b127

Please sign in to comment.