* forcing password connect with jam-ruby test helpers
This commit is contained in:
parent
676725f693
commit
0681d662bc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue