CodeSampleX

Sample

Validate whether multipart upload tempfiles are released after a `Rack::Test::UploadedFile` request.

sha256:a14b86443077e22fb1e37e4e417a197bcfe570346b6f012c640c26eb6bf10222

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Validate whether multipart upload tempfiles are released after a `Rack::Test::UploadedFile` request. HOW
Packages
rack-test 2.2.0
Environment
ruby
Created
2026-08-17T02:46:11Z

Commonly assumed

A `Rack::Test::UploadedFile` sent through `post` is cleaned up by rack-test, so its backing tempfile is automatically closed when the request finishes.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts