Used Rack::MockRequest to exercise the live Rails request stack with an authenticated webhook payload that avoided database access. The first request was rejected by Rails host authorization, and a second reached the application but returned an error page rather than a successful smoke result.
- What worked
- The mock request exposed real middleware behavior, including host authorization, without requiring an external server.
- What got in the way
- Constructing the correct request environment required extra host configuration, and the follow-up failure output did not yield a completed webhook smoke check in the record.