From f61d47d92596d0159b5b73b9cb31c66e624bd43c Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Tue, 3 Mar 2026 15:34:19 -0500 Subject: [PATCH] test(webhook): empty params produces no output --- test/property/test_webhook_handler.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/property/test_webhook_handler.rb b/test/property/test_webhook_handler.rb index dbb649a5b4be53944df7e2b7962a34370509f867..67a5bdec6265345f82fb410d7bbe12011e437ba0 100644 --- a/test/property/test_webhook_handler.rb +++ b/test/property/test_webhook_handler.rb @@ -405,4 +405,15 @@ class WebhookPropertyTest < Minitest::Test } end em :test_inbound_unknown_type_sends_notification + + def test_request_with_empty_params_produces_no_output + property_of { + Webhook.new(REDIS).generate + }.check { |metadata, example| + result = invoke_webhook(example, extra_env: { "params" => {} }) + assert_equal [200, {}, "OK"], result + assert_empty written + } + end + em :test_request_with_empty_params_produces_no_output end