Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Fix ActionCable broadcast tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rjpaskin committed May 15, 2023
1 parent 52c0128 commit 67edf08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/request/ticket_moves_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
subject
}.to change { board_ticket.reload.swimlane }.from(backlog).to(dev)
.and change { dev.reload.board_tickets[destination_position] }.to(board_ticket)
.and have_broadcasted_to([:board, board]).from_channel(BoardChannel).with(expected_payload)
.and have_broadcasted_to(board).from_channel(BoardChannel).with(expected_payload)

expect(response).to have_http_status(:created)
expect(JSON.parse(response.body)).to include(
Expand Down Expand Up @@ -153,7 +153,7 @@
subject
}.to change { board_ticket.reload.swimlane }.from(backlog).to(dev)
.and change { dev.reload.board_tickets[destination_position] }.to(board_ticket)
.and have_broadcasted_to([:board, board]).from_channel(BoardChannel).with(expected_payload)
.and have_broadcasted_to(board).from_channel(BoardChannel).with(expected_payload)

expect(response).to have_http_status(:created)

Expand All @@ -180,7 +180,7 @@
subject
}.to change { board_ticket.reload.swimlane }.from(backlog).to(dev)
.and change { dev.reload.board_tickets[destination_position] }.to(board_ticket)
.and have_broadcasted_to([:board, board]).from_channel(BoardChannel).with(expected_payload)
.and have_broadcasted_to(board).from_channel(BoardChannel).with(expected_payload)

expect(response).to have_http_status(:created)

Expand Down

0 comments on commit 67edf08

Please sign in to comment.