aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/connection_specification
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-02-21 11:58:33 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-02-24 14:36:18 -0300
commite54acf1308e2e4df047bf90798208e03e1370098 (patch)
tree0b00fefb230cfc5ba64ec10c5f19cb47620ba159 /activerecord/test/cases/connection_specification
parent5fc3b87c93edf770ea0d6b52a28ea225183dbfd7 (diff)
downloadrails-e54acf1308e2e4df047bf90798208e03e1370098.tar.gz
rails-e54acf1308e2e4df047bf90798208e03e1370098.tar.bz2
rails-e54acf1308e2e4df047bf90798208e03e1370098.zip
Do not type cast all the database url values.
We should only type cast when we need to use. Related to 4b005fb371c2e7af80df7da63be94509b1db038c
Diffstat (limited to 'activerecord/test/cases/connection_specification')
-rw-r--r--activerecord/test/cases/connection_specification/resolver_test.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/activerecord/test/cases/connection_specification/resolver_test.rb b/activerecord/test/cases/connection_specification/resolver_test.rb
index 0a04117795..c8dfc3244b 100644
--- a/activerecord/test/cases/connection_specification/resolver_test.rb
+++ b/activerecord/test/cases/connection_specification/resolver_test.rb
@@ -43,27 +43,6 @@ module ActiveRecord
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)
- 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)
- end
-
def test_encoded_password
password = 'am@z1ng_p@ssw0rd#!'
encoded_password = URI.encode_www_form_component(password)