From 69f8216982cbb0f51376ddc77a0a0ca8e72d634f Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 5 Dec 2025 22:35:40 -0500 Subject: [PATCH] Pass correct params to webhook reactivation url helper. ref: https://app.fizzy.do/5986089/cards/3219 --- app/views/webhooks/show.html.erb | 2 +- test/controllers/webhooks_controller_test.rb | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/views/webhooks/show.html.erb b/app/views/webhooks/show.html.erb index a98a8acf3..2fe01f070 100644 --- a/app/views/webhooks/show.html.erb +++ b/app/views/webhooks/show.html.erb @@ -22,7 +22,7 @@ <% unless @webhook.active? %>
- <%= button_to "Reactivate", board_webhook_activation_path(@webhook), method: :post %> + <%= button_to "Reactivate", board_webhook_activation_path(@webhook.board_id, @webhook), method: :post %>
<% end %> diff --git a/test/controllers/webhooks_controller_test.rb b/test/controllers/webhooks_controller_test.rb index 2cd427b5b..c9316172d 100644 --- a/test/controllers/webhooks_controller_test.rb +++ b/test/controllers/webhooks_controller_test.rb @@ -14,6 +14,10 @@ class WebhooksControllerTest < ActionDispatch::IntegrationTest webhook = webhooks(:active) get board_webhook_path(webhook.board, webhook) assert_response :success + + webhook = webhooks(:inactive) + get board_webhook_path(webhook.board, webhook) + assert_response :success end test "new" do @@ -63,6 +67,11 @@ class WebhooksControllerTest < ActionDispatch::IntegrationTest get edit_board_webhook_path(webhook.board, webhook) assert_response :success assert_select "form" + + webhook = webhooks(:inactive) + get edit_board_webhook_path(webhook.board, webhook) + assert_response :success + assert_select "form" end test "update with valid params" do