Merge pull request #1975 from basecamp/flavorjones/fix-webhook-view
Pass correct params to webhook reactivation url helper.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
</header>
|
||||
<% unless @webhook.active? %>
|
||||
<div>
|
||||
<%= button_to "Reactivate", board_webhook_activation_path(@webhook), method: :post %>
|
||||
<%= button_to "Reactivate", board_webhook_activation_path(@webhook.board_id, @webhook), method: :post %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user