diff options
-rw-r--r-- | activerecord/test/cases/connection_specification/resolver_test.rb | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/activerecord/test/cases/connection_specification/resolver_test.rb b/activerecord/test/cases/connection_specification/resolver_test.rb index fb21ab4f50..0a04117795 100644 --- a/activerecord/test/cases/connection_specification/resolver_test.rb +++ b/activerecord/test/cases/connection_specification/resolver_test.rb @@ -20,48 +20,48 @@ module ActiveRecord def test_url_host_no_db spec = resolve 'abstract://foo?encoding=utf8' assert_equal({ - :adapter => "abstract", - :host => "foo", - :encoding => "utf8" }, spec) + adapter: "abstract", + host: "foo", + encoding: "utf8" }, spec) end def test_url_host_db spec = resolve 'abstract://foo/bar?encoding=utf8' assert_equal({ - :adapter => "abstract", - :database => "bar", - :host => "foo", - :encoding => "utf8" }, spec) + adapter: "abstract", + database: "bar", + host: "foo", + encoding: "utf8" }, spec) end def test_url_port spec = resolve 'abstract://foo:123?encoding=utf8' assert_equal({ - :adapter => "abstract", - :port => 123, - :host => "foo", - :encoding => "utf8" }, spec) + adapter: "abstract", + port: 123, + host: "foo", + encoding: "utf8" }, spec) end def test_url_query_numeric spec = resolve 'abstract://foo:123?encoding=utf8&int=500&float=10.9' assert_equal({ - :adapter => "abstract", - :port => 123, - :int => 500, - :float => 10.9, - :host => "foo", - :encoding => "utf8" }, spec) + adapter: "abstract", + port: 123, + int: 500, + float: 10.9, + host: "foo", + encoding: "utf8" }, spec) end def test_url_query_boolean spec = resolve 'abstract://foo:123?true=true&false=false' assert_equal({ - :adapter => "abstract", - :port => 123, - :true => true, - :false => false, - :host => "foo" }, spec) + adapter: "abstract", + port: 123, + true: true, + false: false, + host: "foo" }, spec) end def test_encoded_password @@ -78,7 +78,6 @@ module ActiveRecord assert_match "Could not load 'active_record/connection_adapters/non-existing_adapter'", error.message end - end end end |