Skip to content

Commit

Permalink
Connect to PostgreSQL DB as postgres user
Browse files Browse the repository at this point in the history
because root user is no more available in Travis since 0af5e2e,
we'd better use postgres user in the tests
  • Loading branch information
amatsuda committed Feb 20, 2015
1 parent b8d473d commit b54c2b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -34,4 +34,4 @@ Please test with the latest Ruby 1.8.x and 1.9.x versions using RVM if possible.
## Running active record tests

Make sure you have a local PostgreSQL database named `carrierwave_test` with the username
`root` and empty password.
`postgres`
3 changes: 2 additions & 1 deletion spec/support/activerecord.rb
Expand Up @@ -10,7 +10,8 @@
dbconfig = {
:adapter => 'postgresql',
:database => 'carrierwave_test',
:encoding => 'utf8'
:encoding => 'utf8',
:username => 'postgres'
}

database = dbconfig.delete(:database)
Expand Down

0 comments on commit b54c2b8

Please sign in to comment.