Merge branch 'master' of bitbucket.org:jamkazam/jam-ruby

This commit is contained in:
Seth Call 2012-10-04 21:39:11 -05:00
commit 36b1a4ad1c
1 changed files with 2 additions and 2 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 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