Use correct stream name

comment, :comments makes no sense for a stream for the reactions
This commit is contained in:
David Heinemeier Hansson
2025-04-11 17:47:35 +02:00
parent eec76d0d4f
commit 79700162fc
3 changed files with 6 additions and 5 deletions
@@ -7,7 +7,7 @@ class Cards::Comments::ReactionsControllerTest < ActionDispatch::IntegrationTest
end
test "create" do
assert_turbo_stream_broadcasts [ @comment, :comments ], count: 1 do
assert_turbo_stream_broadcasts [ @comment, :reactions ], count: 1 do
assert_difference -> { @comment.reactions.count }, 1 do
post card_comment_reactions_url(@comment.card, @comment, format: :turbo_stream), params: { reaction: { content: "Great work!" } }
assert_redirected_to card_comment_reactions_url(@comment.card, @comment)
@@ -16,7 +16,7 @@ class Cards::Comments::ReactionsControllerTest < ActionDispatch::IntegrationTest
end
test "destroy" do
assert_turbo_stream_broadcasts [ @comment, :comments ], count: 1 do
assert_turbo_stream_broadcasts [ @comment, :reactions ], count: 1 do
assert_difference -> { @comment.reactions.count }, -1 do
delete card_comment_reaction_url(@comment.card, @comment, reactions(:kevin), format: :turbo_stream)
assert_response :success