0
所以,我有我的Postgres的终端设置为这样的database.yml中后卫和RSpec - 不喜欢我postgress:测试证书在database.yml中
test:
adapter: postgresql
encoding: unicode
database: startpoint
hostname: localhost
pool: 5
username: postgres
password: password
我一般做:
psql -h localhous -d startpoint -U postrgres
它将我连接到数据库。
所以,我想:
test:
adapter: postgresql
encoding: unicode
database: startpoint
hostname: localhost
pool: 5
username: postgres
password:
但是当后卫运行我得到:
`initialize': FATAL: Peer authentication failed for user "postgres" (PG::ConnectionBad)
想法?
您使用的相同设置对我来说工作正常。如果没有警卫的情况下运行rspec,你会得到同样的错误吗?你的开发环境如何,它工作正常吗? – taglia