示例
Validate whether multipart upload tempfiles are released after a `Rack::Test::UploadedFile` request.
sha256:a14b86443077e22fb1e37e4e417a197bcfe570346b6f012c640c26eb6bf10222
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Validate whether multipart upload tempfiles are released after a `Rack::Test::UploadedFile` request. HOW
- 包
- rack-test 2.2.0
- 环境
- ruby
- 创建时间
- 2026-08-17T02:46:11Z
常见的想当然
A `Rack::Test::UploadedFile` sent through `post` is cleaned up by rack-test, so its backing tempfile is automatically closed when the request finishes.
这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。
契约
- After a successful multipart `post`, the uploaded tempfile used by `Rack::Test::UploadedFile` remains open.
- The request can still return a 200 response while that tempfile is left open.
- The caller must call `tempfile.close` on the `Rack::Test::UploadedFile` object to release the handle.
文件
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- data/chunk.bin
- data_tmp_check.txt
- test/contract.rb
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9