Use HTML5 validation for the URL

This commit is contained in:
Stanko K.R.
2025-09-15 17:29:40 +02:00
parent 5b3089e11e
commit 63e64a060d
3 changed files with 11 additions and 15 deletions
@@ -56,7 +56,6 @@ class WebhooksControllerTest < ActionDispatch::IntegrationTest
end
assert_response :unprocessable_entity
assert_select "form"
end
test "edit" do
@@ -91,7 +90,6 @@ class WebhooksControllerTest < ActionDispatch::IntegrationTest
}
assert_response :unprocessable_entity
assert_select "form"
assert_no_changes -> { webhook.reload.url } do
patch collection_webhook_path(webhook.collection, webhook), params: {