Permalink
Browse files

Merge pull request #13818 from arthurnn/small_test_case

test boolean and number json param parsing
  • Loading branch information...
2 parents a7680ab + 96dd301 commit bc0820c495dacaf869a9cfb35ca7ef0e113e5573 @guilleiguaran guilleiguaran committed Jan 24, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 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"}},

0 comments on commit bc0820c

Please sign in to comment.