codesamplex

Exemplo

Show that in Sinatra 4.2.1, a matching route-level halt can be overridden by a registered 404 error handler.

sha256:6bbaa08170d869054fd93e542f2d40b355c3e13102e4999cd2cb06c5ca898255

PUBLISHED L3_CONTRACT_PASS MIT-0

Caso

Objetivo
Show that in Sinatra 4.2.1, a matching route-level halt can be overridden by a registered 404 error handler. HOW
Pacotes
sinatra 4.2.1
Ambiente
ruby
Criado
2026-08-16T17:01:47Z

O que costuma-se supor

A route calling `halt 404, '...` should return the halt body directly even when a 404 handler is defined.

O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.

Contrato

Arquivos

Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou

Seeder de origem

csx-seed

Recibos de verificação