Changeset 4915
- Timestamp:
- 09/03/06 16:40:01 (2 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb (modified) (1 diff)
- trunk/actionpack/test/controller/test_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r4914 r4915 1 1 *SVN* 2 3 * Cleanup assert_tag :children counting. #2181 [jamie@bravenet.com] 2 4 3 5 * 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 456 456 if opts = conditions[:children] 457 457 matches = children.select do |c| 458 c.match(/./) or459 458 (c.kind_of?(HTML::Tag) and (c.closing == :self or ! c.childless?)) 460 459 end trunk/actionpack/test/controller/test_test.rb
r4394 r4915 216 216 # there is a tag with 2 children 217 217 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 } 218 220 # there is no tag with 4 children 219 221 assert_no_tag :children => { :count => 4 }