@@ -400,13 +400,13 @@ def expired_unix_timestamp(seconds_ago = 600)
400400 expect_response ( response , Net ::HTTPSuccess )
401401 body = parse_json_response ( response )
402402 expect ( body [ "status" ] ) . to eq ( "test_success" )
403- expect ( body [ "handler" ] ) . to eq ( "TestHandler " )
403+ expect ( body [ "handler" ] ) . to eq ( "test_handler " )
404404 expect ( body [ "payload_received" ] ) . to eq ( { } )
405405 expect ( body [ "env_received" ] ) . to have_key ( "REQUEST_METHOD" )
406406
407407 env = body [ "env_received" ]
408408 expect ( env [ "hooks.request_id" ] ) . to be_a ( String )
409- expect ( env [ "hooks.handler" ] ) . to eq ( "TestHandler " )
409+ expect ( env [ "hooks.handler" ] ) . to eq ( "test_handler " )
410410 expect ( env [ "hooks.endpoint_config" ] ) . to be_a ( Hash )
411411 expect ( env [ "hooks.start_time" ] ) . to be_a ( String )
412412 expect ( env [ "hooks.full_path" ] ) . to eq ( "/webhooks/with_custom_auth_plugin" )
@@ -445,7 +445,7 @@ def expired_unix_timestamp(seconds_ago = 600)
445445 expect ( body ) . to have_key ( "request_id" )
446446 expect ( body [ "request_id" ] ) . to be_a ( String )
447447 expect ( body ) . to have_key ( "handler" )
448- expect ( body [ "handler" ] ) . to eq ( "Boomtown " )
448+ expect ( body [ "handler" ] ) . to eq ( "boomtown " )
449449 end
450450 end
451451
@@ -454,11 +454,11 @@ def expired_unix_timestamp(seconds_ago = 600)
454454 payload = { } . to_json
455455 headers = { }
456456 response = make_request ( :post , "/webhooks/does_not_exist" , payload , headers )
457- expect_response ( response , Net ::HTTPInternalServerError , /Handler plugin 'DoesNotExist ' not found/ )
457+ expect_response ( response , Net ::HTTPInternalServerError , /Handler plugin 'does_not_exist ' not found/ )
458458 body = parse_json_response ( response )
459459 expect ( body [ "error" ] ) . to eq ( "server_error" )
460460 expect ( body [ "message" ] ) . to match (
461- /Handler plugin 'DoesNotExist ' not found. Available handlers: DefaultHandler,.*/
461+ /Handler plugin 'does_not_exist ' not found. Available handlers: DefaultHandler,.*/
462462 )
463463 end
464464 end
0 commit comments