search for: test_person

Displaying 3 results from an estimated 3 matches for "test_person".

2007 Feb 13
1
observe_field and select box
...lect box should be populated, and if "Create New" is selected a new record is to be created. <%= observe_field("test_company", {:url => {:controller=> ''/test'',:action => ''update_people''}, :update =>"test_person", :loading => "Element.show(''indicator'')", :complete => "Element.hide(''indicator'')", :with => "test_company}) %> If i use <%= select(:test, :company ,Company.find_all_by_name(test.company.to_s).map{|c...
2006 May 05
3
posting xml in functional test
Hello, I''m trying to write a functional test for a simple CRUD controller which accepts / emits xml in a REST- like fashion. However the following code won''t work for me - an exception is generated def test_create post :create, ''<person><name>john</name></person>'',
2006 May 06
0
RE: Rails Digest, Vol 20, Issue 156
...39;' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:358:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:336:in `post'' 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 ? thanks. >* Hello, *>*...