Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4915

Show
Ignore:
Timestamp:
09/03/06 16:40:01 (2 years ago)
Author:
bitsweat
Message:

Cleanup assert_tag :children counting. Closes #2181.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r4914 r4915  
    11*SVN* 
     2 
     3* Cleanup assert_tag :children counting.  #2181 [jamie@bravenet.com] 
    24 
    35* button_to accepts :method so you can PUT and DELETE with it.  #6005 [Dan Webb] 
  • trunk/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb

    r4251 r4915  
    456456      if opts = conditions[:children] 
    457457        matches = children.select do |c| 
    458           c.match(/./) or 
    459458          (c.kind_of?(HTML::Tag) and (c.closing == :self or ! c.childless?)) 
    460459        end 
  • trunk/actionpack/test/controller/test_test.rb

    r4394 r4915  
    216216    # there is a tag with 2 children 
    217217    assert_tag :children => { :count => 2 } 
     218    # in particular, there is a <ul> tag with two children (a nameless pair of <li>s) 
     219    assert_tag :tag => 'ul', :children => { :count => 2 } 
    218220    # there is no tag with 4 children 
    219221    assert_no_tag :children => { :count => 4 }