diff --git a/spec/request/ticket_moves_spec.rb b/spec/request/ticket_moves_spec.rb index dc7c385..fac20f0 100644 --- a/spec/request/ticket_moves_spec.rb +++ b/spec/request/ticket_moves_spec.rb @@ -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( @@ -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) @@ -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)