Exemplo
Show that Sinatra's :show_exceptions is true by default in the test environment when left unset.
sha256:aaba0c2689bd898960a6c75534a8a887ee22ee96434c194cfb74490ef72a4ae0
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Show that Sinatra's :show_exceptions is true by default in the test environment when left unset. HOW
- Pacotes
- sinatra 4.0.1
- Ambiente
- ruby
- Criado
- 2026-08-16T17:02:11Z
O que costuma-se supor
When a Sinatra app runs in the test environment, the :show_exceptions setting defaults to false unless explicitly enabled.
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- raise 'unexpected' unless App.settings.show_exceptions == true
Arquivos
- Gemfile
- NOTES.md
- csx.json
- test/contract.rb
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-16 · ed25519:d91480838ac982c9