diff options
author | Jamis Buck <jamis@37signals.com> | 2006-09-10 02:51:38 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2006-09-10 02:51:38 +0000 |
commit | 3f0952d9df1db6e01ca608f30ba743f3e7d54dcc (patch) | |
tree | 2e55a07afd50a918e8472b1983ea628d16bb50cb /actionpack/lib/action_controller/vendor/html-scanner | |
parent | 5bf41ed8bcb8e9a15e2290e2e72a7aaffafa31b5 (diff) | |
download | rails-3f0952d9df1db6e01ca608f30ba743f3e7d54dcc.tar.gz rails-3f0952d9df1db6e01ca608f30ba743f3e7d54dcc.tar.bz2 rails-3f0952d9df1db6e01ca608f30ba743f3e7d54dcc.zip |
Fix assert_tag so that :content => "foo" does not match substrings, but only exact strings. Use :content => /foo/ to match substrings. closes #2799
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/vendor/html-scanner')
-rw-r--r-- | actionpack/lib/action_controller/vendor/html-scanner/html/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 7b53af9591..a6490b1f3b 100644 --- a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +++ b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb @@ -239,7 +239,7 @@ module HTML #:nodoc: def match(conditions) case conditions when String - @content.index(conditions) + @content == conditions when Regexp @content =~ conditions when Hash |