diff --git a/spec/support/import_database_connection.rb b/spec/support/import_database_connection.rb index a6557f3bd7..0143911108 100644 --- a/spec/support/import_database_connection.rb +++ b/spec/support/import_database_connection.rb @@ -7,18 +7,18 @@ module CartoDB if @@connection @@connection else - c = ::Sequel.connect('postgres://lorenzo:@localhost:5432/cartodb_importer_test') + c = ::Sequel.connect('postgres://postgres:@localhost:5432/cartodb_importer_test') begin c.test_connection @@connection = c rescue - c = ::Sequel.connect('postgres://lorenzo:@localhost:5432') + c = ::Sequel.connect('postgres://postgres:@localhost:5432') c.run <<-SQL CREATE DATABASE cartodb_importer_test WITH TEMPLATE = template_postgis -OWNER = lorenzo +OWNER = postgres SQL - @@connection = ::Sequel.connect('postgres://lorenzo:@localhost:5432/cartodb_importer_test') + @@connection = ::Sequel.connect('postgres://postgres:@localhost:5432/cartodb_importer_test') end return @@connection end @@ -28,7 +28,7 @@ SQL @@connection.disconnect @@connection = nil begin - c = ::Sequel.connect('postgres://lorenzo:@localhost:5432') + c = ::Sequel.connect('postgres://postgres:@localhost:5432') c.run "DROP DATABASE cartodb_importer_test" rescue => e raise e