diff --git a/spec/spec_db.rb b/spec/spec_db.rb index 5a3a935ee..d65d254a5 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") + 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 \ No newline at end of file +end