diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-28 11:06:59 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-28 15:23:24 -0800 |
commit | 2a9a8ad4dfb2609a2275c1a3540ad2768562a026 (patch) | |
tree | 6f7336876924864a3d478405992960f249797de8 /activerecord/test | |
parent | d1afd987464717f8af1ab0e9a78af6f37b9ce425 (diff) | |
download | rails-2a9a8ad4dfb2609a2275c1a3540ad2768562a026.tar.gz rails-2a9a8ad4dfb2609a2275c1a3540ad2768562a026.tar.bz2 rails-2a9a8ad4dfb2609a2275c1a3540ad2768562a026.zip |
break establish_connection to smaller methods
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/connection_management_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/connection_management_test.rb b/activerecord/test/cases/connection_management_test.rb index f554ceef35..2ce61f214b 100644 --- a/activerecord/test/cases/connection_management_test.rb +++ b/activerecord/test/cases/connection_management_test.rb @@ -32,7 +32,7 @@ module ActiveRecord end def test_url_host_no_db - spec = FakeBase.establish_connection 'postgres://foo?encoding=utf8' + spec = FakeBase.connection_url_to_hash 'postgres://foo?encoding=utf8' assert_equal({ :adapter => "postgresql", :database => "", @@ -41,7 +41,7 @@ module ActiveRecord end def test_url_host_db - spec = FakeBase.establish_connection 'postgres://foo/bar?encoding=utf8' + spec = FakeBase.connection_url_to_hash 'postgres://foo/bar?encoding=utf8' assert_equal({ :adapter => "postgresql", :database => "bar", @@ -50,7 +50,7 @@ module ActiveRecord end def test_url_port - spec = FakeBase.establish_connection 'postgres://foo:123?encoding=utf8' + spec = FakeBase.connection_url_to_hash 'postgres://foo:123?encoding=utf8' assert_equal({ :adapter => "postgresql", :database => "", |