I am running my development on Ubuntu 11.10, and RubyMine
Here is my development settings for the database.yml: which RubyMine created for me
develop
If you get that error message (Peer authentication failed for user (PG::Error)) when running unit tests, make sure the test database exists.
Peer authentication failed for user (PG::Error)