Permalink
Browse files

test boolean and number json param parsing

  • Loading branch information...
arthurnn committed Jan 24, 2014
1 parent a7680ab commit 96dd3016d1797e9ef6b59bce57f1baa5fd2a2210
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 96dd301

Please sign in to comment.