diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-20 10:27:18 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-20 10:27:18 -0300 |
commit | e1456ad95ef45971ff1593be3d1364ed42bcd9ee (patch) | |
tree | f0316e73d5ad1066057fe44ac6f28bcc023da584 | |
parent | e5c26ee1ed4a39f5df3793e2b4a59e9a2614a008 (diff) | |
download | rails-e1456ad95ef45971ff1593be3d1364ed42bcd9ee.tar.gz rails-e1456ad95ef45971ff1593be3d1364ed42bcd9ee.tar.bz2 rails-e1456ad95ef45971ff1593be3d1364ed42bcd9ee.zip |
Whitespace :heart: and hash syntax change
-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 |