Pattern
Standard library only:net/http + json. No gem, no API key.
POST /api/new_address is Turnstile-protected on the public instance. Pre-create addresses in the web UI and reuse the JWT, or self-host with Turnstile disabled. See API Overview.Helper: temp_inbox.rb
temp_inbox.rb
Example: RSpec + Capybara
spec/signup_spec.rb
Tips
- One inbox per example — safe with
parallel_tests/ turbo_tests - 2–3s poll interval, 60s timeout for external SMTP in CI — list responses cached up to 60s at
offset=0 metadatais a JSON string —JSON.parseit before readingsubject, as the helper does