diff options
author | Eugene Gilburg <eugene.gilburg@gmail.com> | 2014-07-19 12:49:52 -0700 |
---|---|---|
committer | Eugene Gilburg <eugene.gilburg@gmail.com> | 2014-07-19 17:15:40 -0700 |
commit | 3b9cc0a56f4cbfb97f12c5a167ac901f7682bbe2 (patch) | |
tree | b4ebd67d449a380aa404bbce011898e5eddc9fe9 /activesupport/test/core_ext/object | |
parent | 08754f12e65a9ec79633a605e986d0f1ffa4b251 (diff) | |
download | rails-3b9cc0a56f4cbfb97f12c5a167ac901f7682bbe2.tar.gz rails-3b9cc0a56f4cbfb97f12c5a167ac901f7682bbe2.tar.bz2 rails-3b9cc0a56f4cbfb97f12c5a167ac901f7682bbe2.zip |
missing activesupport test coverage
Diffstat (limited to 'activesupport/test/core_ext/object')
-rw-r--r-- | activesupport/test/core_ext/object/to_query_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/object/to_query_test.rb b/activesupport/test/core_ext/object/to_query_test.rb index 7457c4655a..47220e9509 100644 --- a/activesupport/test/core_ext/object/to_query_test.rb +++ b/activesupport/test/core_ext/object/to_query_test.rb @@ -46,6 +46,10 @@ class ToQueryTest < ActiveSupport::TestCase :person => {:id => [20, 10]} end + def test_empty_array + assert_equal "person%5B%5D=", [].to_query('person') + end + def test_nested_empty_hash assert_equal '', {}.to_query |