mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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`.
This commit is contained in:
parent
1bca3cc406
commit
66ff8b1439
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue