aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2011-07-13 16:51:46 -0500
committerAaron Patterson <aaron.patterson@gmail.com>2011-07-20 16:23:31 -0700
commit16921437a19221cef30dbb18601545d7e2a9a527 (patch)
tree4db3503183e664e21cfcce69a33e7b2725150404
parent1f427b534199399545f90fd0895d62c005247501 (diff)
downloadrails-16921437a19221cef30dbb18601545d7e2a9a527.tar.gz
rails-16921437a19221cef30dbb18601545d7e2a9a527.tar.bz2
rails-16921437a19221cef30dbb18601545d7e2a9a527.zip
fix postgres connection url test
-rw-r--r--activerecord/test/cases/adapter_test.rb2
1 files changed, 1 insertions, 1 deletions
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