Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fisting codes so it will parse [#4430 state:resolved]

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information...
commit d4d352bf94f8d2b6fc5684706ed2b33da77203fd 1 parent 9a3a4d6
@tenderlove tenderlove authored wycats committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/template/erb_util_test.rb
View
4 actionpack/test/template/erb_util_test.rb
@@ -4,12 +4,12 @@ class ErbUtilTest < Test::Unit::TestCase
include ERB::Util
ERB::Util::HTML_ESCAPE.each do |given, expected|
- define_method "test_html_escape_#{expected.gsub /\W/, ''}" do
+ define_method "test_html_escape_#{expected.gsub(/\W/, '')}" do
assert_equal expected, html_escape(given)
end
unless given == '"'
- define_method "test_json_escape_#{expected.gsub /\W/, ''}" do
+ define_method "test_json_escape_#{expected.gsub(/\W/, '')}" do
assert_equal ERB::Util::JSON_ESCAPE[given], json_escape(given)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.