diff --git a/app/controllers/cards/triages_controller.rb b/app/controllers/cards/triages_controller.rb index 12fe1a5fb..10fb3df34 100644 --- a/app/controllers/cards/triages_controller.rb +++ b/app/controllers/cards/triages_controller.rb @@ -5,11 +5,11 @@ class Cards::TriagesController < ApplicationController column = @card.collection.columns.find(params[:column_id]) @card.triage_into(column) - render_card_replacement + redirect_to @card end def destroy @card.send_back_to_triage - render_card_replacement + redirect_to @card end end diff --git a/test/controllers/cards/triages_controller_test.rb b/test/controllers/cards/triages_controller_test.rb index 8439d70f9..9076cdade 100644 --- a/test/controllers/cards/triages_controller_test.rb +++ b/test/controllers/cards/triages_controller_test.rb @@ -12,7 +12,7 @@ class Cards::TriagesControllerTest < ActionDispatch::IntegrationTest assert_changes -> { card.reload.column }, from: original_column, to: column do post card_triage_path(card, column_id: column.id) - assert_card_container_rerendered(card) + assert_redirected_to card end end @@ -20,8 +20,8 @@ class Cards::TriagesControllerTest < ActionDispatch::IntegrationTest card = cards(:shipping) assert_changes -> { card.reload.column }, to: nil do - delete card_triage_path(card) - assert_card_container_rerendered(card) + delete card_triage_path(card), as: :turbo_stream + assert_redirected_to card end end end