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
|
su - postgres
|
||||||
psql
|
psql
|
||||||
> create user tps with password 'lol' superuser;
|
> create user tps with password 'lol' superuser;
|
||||||
|
> create user tps_test with password 'tps_test' superuser;
|
||||||
> \q
|
> \q
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,10 @@ development:
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
adapter: sqlite3
|
adapter: postgresql
|
||||||
|
encoding: unicode
|
||||||
|
database: tps_test
|
||||||
|
host: localhost
|
||||||
pool: 5
|
pool: 5
|
||||||
timeout: 5000
|
username: tps_test
|
||||||
database: db/test.sqlite3
|
password: tps_test
|
||||||
|
|
Loading…
Reference in a new issue