From 16921437a19221cef30dbb18601545d7e2a9a527 Mon Sep 17 00:00:00 2001 From: Terence Lee Date: Wed, 13 Jul 2011 16:51:46 -0500 Subject: fix postgres connection url test --- activerecord/test/cases/adapter_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/cases') diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb index 52496bf221..b1d99960fe 100644 --- a/activerecord/test/cases/adapter_test.rb +++ b/activerecord/test/cases/adapter_test.rb @@ -100,7 +100,7 @@ class AdapterTest < ActiveRecord::TestCase def test_connect_with_url begin ar_config = ARTest.connection_config['arunit'] - url = "postgres://#{ar_config["username"]}@localhost/#{ar_config["database"]}?encoding=utf8" + url = "postgres:///#{ar_config["database"]}?encoding=utf8" ActiveRecord::Base.establish_connection(url) connection = ActiveRecord::Base.connection assert_equal ar_config['database'], connection.current_database -- cgit v1.2.3