From 66ff8b14398b4264bb6a3dd3486572ff6fdddf53 Mon Sep 17 00:00:00 2001 From: Julian Rubisch Date: Fri, 11 Mar 2022 09:51:11 +0100 Subject: [PATCH] Fix ChatRelayJob definition in Testing Guide The `ChatRelayJob` under "14.3 Custom Assertions And Testing Broadcasts Inside Other Components" defined a `perform_later` method, which I think should just be `perform`. --- guides/source/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/testing.md b/guides/source/testing.md index d4d7ea702b..6444af6bee 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -1950,7 +1950,7 @@ If you want to test the broadcasting made with `Channel.broadcast_to`, you shoul ```ruby # app/jobs/chat_relay_job.rb class ChatRelayJob < ApplicationJob - def perform_later(room, message) + def perform(room, message) ChatChannel.broadcast_to room, text: message end end