diff options
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/adapter_test.rb | 2 |
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 |