title: PG::ConnectionBad: fe_sendauth: no password supplied
body: <p>When I attempt to run "rake test" on a local postgres database, it throws the above exception.</p>
  
  <p>Here is my pg_hba.conf file:
      # Database administrative login by Unix domain socket
      local   all             postgres                                peer</p>
  
  <pre><code># TYPE  DATABASE        USER            ADDRESS                 METHOD
  
  # "local" is for Unix domain socket connections only
  local   all             username                                  peer
  local   myapp_dev   myapp                               md5
  local   myapp_test  myapp                               md5
  local   myapp_prod  myapp                               md5
  #local   all             all                                     peer
  # IPv4 local connections:
  host    all             all             127.0.0.1/32            md5
  # IPv6 local connections:
  host    all             all             ::1/128                 md5
  # Allow replication connections from localhost, by a user with the
  # replication privilege.
  #local   replication     postgres                                peer
  #host    replication     postgres        127.0.0.1/32            md5
  #host    replication     postgres        ::1/128                 md5
  </code></pre>
  
  <p>and here is the relevant section from my database.yml</p>
  
  <pre><code>test:
  
  adapter: postgresql
  database: myapp_test
  pool: 5
  timeout: 5000
  host: localhost
  username: username
  password:
  </code></pre>
  
  <p>In the real database.yml, 'username' is replaced with my actual user name that I am logged in as.  Since the authentication method is defined as 'peer', no password should be required.</p>
  
  <p>I have also taken care to restart Postgres </p>
  
  <pre><code>sudo -u postgres pg_ctlcluster 9.3 main restart
  </code></pre>
  
  <p>What else am I missing here?</p>