Skip to content
Browse files

fix postgres connection url test

  • Loading branch information...
1 parent 1f427b5 commit 16921437a19221cef30dbb18601545d7e2a9a527 @hone hone committed with tenderlove Jul 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/adapter_test.rb
View
2 activerecord/test/cases/adapter_test.rb
@@ -100,7 +100,7 @@ def test_encoding
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

0 comments on commit 1692143

Please sign in to comment.
Something went wrong with that request. Please try again.