If “an exception is generated” then it would be good to knwo the
details of said exception.
Sorry - here it is
NoMethodError: undefined method
symbolize_keys' for "<person><name>John</name></persion>":String /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:99:inassign_parameters’
test/functional/person _controller_test.rb:21:in `test_person’
I’m not sure how to fix it but I believe you stuck that xml in the post
query string, not the post body.
I agree, that looks likely. Can someone tell me how to add data to the
post body, or point me in the direction of the approproate docs ?
> I’m trying to write a functional test for a simple CRUD controller
> accepts / emits xml in a REST- like fashion. However the following
> won’t work for me - an exception is generated
> def test_create
> post :create, ‘john’,
> assert_response 200
*> thanks in advance