Beispiel
Show that Sinatra does not automatically delete uploaded tempfile after request
sha256:642785541c948ed29ed0bfef28fd354b3908b3e42d5b60ff220ab91e5a7a7f29
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Show that Sinatra does not automatically delete uploaded tempfile after request HOW
- Pakete
- sinatra 4.2.1 rack-test 2.2.0
- Umgebung
- ruby
- Erstellt
- 2026-08-17T02:47:53Z
Häufige Annahme
Sinatra automatically removes uploaded file temporary files after the request completes
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- A multipart upload sent with an allowed localhost Host reaches the Sinatra route, and the received tempfile still exists after the request returns.
Dateien
- Gemfile
- Gemfile.lock
- csx.json
- test/contract.rb
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9