Permalink
Browse files

Merge pull request #9104 from bemurphy/remove_bad_idea_parser_test

Remove yaml Proc param parser test
  • Loading branch information...
2 parents 71862ca + c302741 commit 29000a7dbd9c6650b240f7f244901e55c3ac8ad2 @carlosantoniodasilva carlosantoniodasilva committed Jan 29, 2013
Showing with 0 additions and 13 deletions.
  1. +0 −13 actionpack/test/controller/webservice_test.rb
@@ -129,19 +129,6 @@ def test_post_xml_using_a_disallowed_type_attribute
$stderr = STDERR
end
- def test_register_and_use_yaml
- with_test_route_set do
- with_params_parsers Mime::YAML => Proc.new { |d| YAML.load(d) } do
- post "/", {"entry" => "loaded from yaml"}.to_yaml,
- {'CONTENT_TYPE' => 'application/x-yaml'}
-
- assert_equal 'entry', @controller.response.body
- assert @controller.params.has_key?(:entry)
- assert_equal 'loaded from yaml', @controller.params["entry"]
- end
- end
- end
-
def test_register_and_use_xml_simple
with_test_route_set do
with_params_parsers Mime::XML => Proc.new { |data| Hash.from_xml(data)['request'].with_indifferent_access } do

0 comments on commit 29000a7

Please sign in to comment.