Skip to content

Commit

Permalink
connect to postgres in tests as current user
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjudd committed Mar 22, 2011
1 parent 76c7a08 commit 2bb2a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Test::Unit::TestCase
ActiveRecord::Base.establish_connection(
:adapter => "postgresql",
:host => "localhost",
:username => "postgres",
:username => `whoami`.chomp,
:password => "",
:database => "test"
)
Expand Down

0 comments on commit 2bb2a6c

Please sign in to comment.