test/helpers/params_spec.rb in jsonatra-1.0.5 vs test/helpers/params_spec.rb in jsonatra-1.0.7

- old
+ new

@@ -67,6 +67,11 @@ post '/params', ['a', 1, 5.75, true].to_json, {'Content-Type' => 'text/plain'} r['error'].wont_be_nil r['error']['type'].must_equal "content_type_mismatch" end + it 'rejects invalid JSON input' do + post '/params', "*****&&\.>?;,*&{#@^*&!@$}&******", {'Content-Type' => 'application/json'} + puts r.inspect + end + end