tests: minitest + rack-test suite, bin/test with ephemeral Postgres
This commit is contained in:
parent
8468b3d099
commit
43bed98329
13 changed files with 456 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue