Use a postgresql database for tests
Try to be the closest to the production environment
This commit is contained in:
parent
3ca914aba8
commit
aef804a988
2 changed files with 7 additions and 3 deletions
|
@ -29,6 +29,7 @@ Les informations nécessaire à l'initialisation de la base doivent être pré-c
|
|||
su - postgres
|
||||
psql
|
||||
> create user tps with password 'lol' superuser;
|
||||
> create user tps_test with password 'tps_test' superuser;
|
||||
> \q
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,10 @@ development:
|
|||
|
||||
|
||||
test:
|
||||
adapter: sqlite3
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
database: tps_test
|
||||
host: localhost
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
database: db/test.sqlite3
|
||||
username: tps_test
|
||||
password: tps_test
|
||||
|
|
Loading…
Reference in a new issue