tests: minitest + rack-test suite, bin/test with ephemeral Postgres

This commit is contained in:
Sergei Poljanski 2026-07-02 17:32:14 +04:00
commit 43bed98329
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
13 changed files with 456 additions and 2 deletions

View file

@ -7,7 +7,9 @@ require 'uri'
begin
require 'dotenv'
Dotenv.load
# Tests control ENV themselves; a developer's .env must not leak in (it may
# point DATABASE_URL at a real database).
Dotenv.load unless ENV['RACK_ENV'] == 'test'
rescue LoadError
end