* forcing password connect with jam-ruby test helpers

This commit is contained in:
Seth Call 2012-09-17 22:37:17 -05:00
parent 676725f693
commit 0681d662bc
1 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@ class SpecDb
TEST_DB_NAME="jam_ruby_test"
def self.recreate_database
conn = PG::Connection.open("dbname=postgres")
conn = PG::Connection.open("dbname=postgres user=postgres password=postgres")
conn.exec("DROP DATABASE IF EXISTS #{TEST_DB_NAME}")
conn.exec("CREATE DATABASE #{TEST_DB_NAME}")
JamDb::Migrator.new.migrate(:dbname => TEST_DB_NAME)
JamDb::Migrator.new.migrate(:dbname => TEST_DB_NAME, :user => "postgres", :password => "postgres")
end
end
end