Use a postgresql database for tests

Try to be the closest to the production
environment
This commit is contained in:
gregoirenovel 2017-04-04 11:43:07 +02:00
parent 3ca914aba8
commit aef804a988
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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