aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-05 23:47:16 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-05 23:47:16 -0200
commitd6e3fd775b8a0277b07b06c22c29f66dbafe6559 (patch)
tree57df720ee6fbefd0abe372161406803549fe97c0 /activesupport
parent88b064dfae924f28ec4750ea5a3a91b855481546 (diff)
downloadrails-d6e3fd775b8a0277b07b06c22c29f66dbafe6559.tar.gz
rails-d6e3fd775b8a0277b07b06c22c29f66dbafe6559.tar.bz2
rails-d6e3fd775b8a0277b07b06c22c29f66dbafe6559.zip
Test with a blank value
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/object/to_query_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/object/to_query_test.rb b/activesupport/test/core_ext/object/to_query_test.rb
index a53d7781f9..51275e36bf 100644
--- a/activesupport/test/core_ext/object/to_query_test.rb
+++ b/activesupport/test/core_ext/object/to_query_test.rb
@@ -49,8 +49,8 @@ class ToQueryTest < ActiveSupport::TestCase
def test_nested_empty_hash
assert_query_equal 'a=1&b%5Bc%5D=3&b%5Bd%5D=',
{ a: 1, b: { c: 3, d: {} } }
- assert_query_equal 'b%5Bc%5D=3&b%5Be%5D=&b%5Bf%5D=&p=12',
- { p: 12, b: { c: 3, e: nil, f: '' } }
+ assert_query_equal 'b%5Bc%5D=false&b%5Be%5D=&b%5Bf%5D=&p=12',
+ { p: 12, b: { c: false, e: nil, f: '' } }
assert_query_equal 'b%5Bc%5D=3&b%5Bf%5D=&b%5Bk%5D=',
{ b: { c: 3, k: {}, f: '' } }
end