From 4c0f21741e30b2696efb47f2ad6e65dd5b6ce1ae Mon Sep 17 00:00:00 2001 From: tihot_jk Date: Wed, 3 Oct 2012 00:34:22 -0700 Subject: [PATCH] Fixing the peer auth issues --- spec/spec_db.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/spec_db.rb b/spec/spec_db.rb index d65d254a5..275a1b485 100644 --- a/spec/spec_db.rb +++ b/spec/spec_db.rb @@ -3,9 +3,9 @@ class SpecDb TEST_DB_NAME="jam_ruby_test" def self.recreate_database - conn = PG::Connection.open("dbname=postgres user=postgres password=postgres") + conn = PG::Connection.open("dbname=postgres user=postgres password=postgres host=localhost") conn.exec("DROP DATABASE IF EXISTS #{TEST_DB_NAME}") conn.exec("CREATE DATABASE #{TEST_DB_NAME}") - JamDb::Migrator.new.migrate(:dbname => TEST_DB_NAME, :user => "postgres", :password => "postgres") + JamDb::Migrator.new.migrate(:dbname => TEST_DB_NAME, :user => "postgres", :password => "postgres", :host => "localhost") end end