mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
fisting codes so it will parse [#4430 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user