title: Rails + Postgres fe_sendauth: no password supplied
body: <p>Hi I'm trying to hook up postgresql to my rails project. I'm learning testing but my tests aren't running because of a postgresql error about having an incorrect password:</p>
  
  <pre><code>Edmunds-MacBook-Pro:langexchange edmundmai$ rake test:units
  rake aborted!
  fe_sendauth: no password supplied
  </code></pre>
  
  <p>I've already read around and my pg_hba.conf file was originally already like this:</p>
  
  <pre><code># TYPE  DATABASE        USER            ADDRESS                 METHOD
  
  # "local" is for Unix domain socket connections only
  local   all             all                                     trust
  # IPv4 local connections:
  host    all             all             127.0.0.1/32            trust
  # IPv6 local connections:
  host    all             all             ::1/128                 trust
  # Allow replication connections from localhost, by a user with the
  # replication privilege.
  #local   replication     edmundmai  
  </code></pre>
  
  <p>here's my database.yml file in my rails project</p>
  
  <pre><code>default: &amp;default
    adapter: postgresql
    encoding: utf8
    pool: 5
    username: edmundmai
    password: 
  
  development:
    &lt;&lt;: *default
    database: project_development
  
  test:
    &lt;&lt;: *default
    database: project_test
  
  production:
    &lt;&lt;: *default
    database: project_production
  </code></pre>
  
  <p>Does anyone know how I could fix this? We can chat if it's easier.</p>