Ejemplo
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
- Paquetes
- sinatra 4.0.1
- Entorno
- ruby
- Creado
- 2026-08-16T17:02:11Z
Lo que suele suponerse
When a Sinatra app runs in the test environment, the :show_exceptions setting defaults to false unless explicitly enabled.
El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.
Contrato
- raise 'unexpected' unless App.settings.show_exceptions == true
Archivos
- Gemfile
- NOTES.md
- csx.json
- test/contract.rb
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-16 · ed25519:d91480838ac982c9