Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #13818 from arthurnn/small_test_case

test boolean and number json param parsing
  • Loading branch information...
commit bc0820c495dacaf869a9cfb35ca7ef0e113e5573 2 parents a7680ab + 96dd301
@guilleiguaran guilleiguaran authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 actionpack/test/dispatch/request/json_params_parsing_test.rb
View
7 actionpack/test/dispatch/request/json_params_parsing_test.rb
@@ -23,6 +23,13 @@ def teardown
)
end
+ test "parses boolean and number json params for application json" do
+ assert_parses(
+ {"item" => {"enabled" => false, "count" => 10}},
+ "{\"item\": {\"enabled\": false, \"count\": 10}}", { 'CONTENT_TYPE' => 'application/json' }
+ )
+ end
+
test "parses json params for application jsonrequest" do
assert_parses(
{"person" => {"name" => "David"}},
Please sign in to comment.
Something went wrong with that request. Please try again.