Permalink
Browse files

Test with a blank value

  • Loading branch information...
1 parent 88b064d commit d6e3fd775b8a0277b07b06c22c29f66dbafe6559 @rafaelfranca rafaelfranca committed Feb 6, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/object/to_query_test.rb
@@ -49,8 +49,8 @@ def test_array_values_are_not_sorted
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

0 comments on commit d6e3fd7

Please sign in to comment.