On Aug 16, 2005, at 4:52 PM, Derek Haynes wrote:
> All,
>
> I keep running into the error below when I attempt an assert_tag
> assertion in a functional test. I receive this error on all pages that
> I attempt to parse.
>
> 1) Error:
> test_show(Browse::PeopleControllerTest):
> RuntimeError: expected > (got "\n" for </a
> , nil)
Sounds like a bug in the html scanner. The problem appears to be that
you''ve got an anchor tag whose closing > character is on a new line,
which is perfectly legal. (Can you verify that this is the case?)
Please submit a ticket so that this doesn''t get lost in the shuffle.
- Jamis
> C:/eclipse/workspace/Activame/config/../vendor/rails/actionpack/
> lib/action_v
> iew/helpers/../../action_controller/vendor/html-scanner/html/
> node.rb:176:in `par
> se''
> C:/eclipse/workspace/Activame/config/../vendor/rails/actionpack/
> lib/action_v
> iew/helpers/../../action_controller/vendor/html-scanner/html/
> document.rb:19:in `
> initialize''
> C:/eclipse/workspace/Activame/config/../vendor/rails/actionpack/
> lib/action_c
> ontroller/test_process.rb:338:in `new''
> C:/eclipse/workspace/Activame/config/../vendor/rails/actionpack/
> lib/action_c
> ontroller/test_process.rb:338:in `html_document''
> C:/eclipse/workspace/Activame/config/../vendor/rails/actionpack/
> lib/action_c
> ontroller/test_process.rb:342:in `find_tag''
> C:/eclipse/workspace/Activame/config/../vendor/rails/actionpack/
> lib/action_c
> ontroller/assertions.rb:246:in `assert_no_tag''
> people_controller_test.rb:35:in `test_show''
>
> ----------
> code from test:
>
> get :show, :id => @bob.id
> assert_response :success
> assert_tag :tag => ''div''
>
> Any ideas?
> --
> Derek Haynes
> HighGroove Studios - highgroove.com
> Keeping it Simple.
> 404.593.4879
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> lists.rubyonrails.org/mailman/listinfo/rails
>