diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-05-29 09:42:13 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-05-29 09:42:13 +0000 |
commit | 32b307bc32e12626b0e6ae493cc3ab34b4c5ea37 (patch) | |
tree | c77df7c4eb0cd04b12cb919b11459262d4502a56 /actionpack/lib | |
parent | 0345c975879e352a5726ff9f91258fdb3afe8525 (diff) | |
download | rails-32b307bc32e12626b0e6ae493cc3ab34b4c5ea37.tar.gz rails-32b307bc32e12626b0e6ae493cc3ab34b4c5ea37.tar.bz2 rails-32b307bc32e12626b0e6ae493cc3ab34b4c5ea37.zip |
fix test cases to match new json output. Closes #8371
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6894 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/assertions/selector_assertions.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/assertions/selector_assertions.rb b/actionpack/lib/action_controller/assertions/selector_assertions.rb index 8bb3402668..05ca2bff15 100644 --- a/actionpack/lib/action_controller/assertions/selector_assertions.rb +++ b/actionpack/lib/action_controller/assertions/selector_assertions.rb @@ -586,6 +586,8 @@ module ActionController # RJS encodes double quotes and line breaks. unescaped= rjs_string.gsub('\"', '"') unescaped.gsub!('\n', "\n") + unescaped.gsub!('\076', '>') + unescaped.gsub!('\074', '<') # RJS encodes non-ascii characters. unescaped.gsub!(RJS_PATTERN_UNICODE_ESCAPED_CHAR) {|u| [$1.hex].pack('U*')} unescaped |