From a9de9c48c22f7eab91be676fb648ca89bbfa75b0 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sun, 9 Oct 2005 01:45:21 +0000 Subject: Make assert_tag :children count appropriately. Closes #2181. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/vendor/html-scanner/html/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/vendor/html-scanner/html/node.rb') diff --git a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb index 016603a3e7..6bc62fdf33 100644 --- a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +++ b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb @@ -435,7 +435,7 @@ module HTML #:nodoc: # count children if opts = conditions[:children] - matches = children + matches = children.select { |c| c.match(/./) } matches = matches.select { |c| c.match(opts[:only]) } if opts[:only] opts.each do |key, value| next if key == :only -- cgit v1.2.3