spec/angelo/params_spec.rb in angelo-0.1.0 vs spec/angelo/params_spec.rb in angelo-0.1.1
- old
+ new
@@ -66,6 +66,15 @@
parser.query_string = get_params
parser.body = json_params
parser.parse_post_body.should eq post_params
end
+ it 'does not parse POST bodies if no Content-Type' do
+ parser.form_encoded = false
+ parser.json = false
+ parser.query_string = get_params
+ parser.body = nil
+ parser.parse_post_body.should eq params_s
+ parser.parse_query_string.should eq params_s
+ end
+
end