spec/spec_helper.rb in do_postgres-0.9.5 vs spec/spec_helper.rb in do_postgres-0.9.6
- old
+ new
@@ -25,10 +25,10 @@
DataObjects::Postgres.logger = DataObjects::Logger.new(log_path, 0)
module PostgresSpecHelpers
def ensure_users_table_and_return_connection
- connection = DataObjects::Connection.new("postgres://localhost/do_test")
+ connection = DataObjects::Connection.new("postgres://postgres@localhost/do_test")
connection.create_command("DROP TABLE users").execute_non_query rescue nil
connection.create_command("DROP TABLE companies").execute_non_query rescue nil
connection.create_command(<<-EOF).execute_non_query
CREATE TABLE users (
id serial NOT NULL,