Commit 00d2685
committed
Fix rack env spec: check rack.errors instead of rack.input
rack-test 2.x does not populate rack.input in the Rack environment for
requests that have no body (e.g. GET). rack.input is only added when there
is a request body to expose. The test was asserting that the adapter
correctly passes the full Rack env through to the resource; rack.errors is
always present regardless of HTTP method or Rack version, so use that as
the representative Rack-specific key instead.1 parent 8b309ee commit 00d2685
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
0 commit comments