aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/erb_util_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-04-17 12:54:52 -0700
committerwycats <wycats@gmail.com>2010-04-17 15:57:36 -0400
commitd4d352bf94f8d2b6fc5684706ed2b33da77203fd (patch)
tree5d9f6770039f90f8e2299a5df4520708f8d09582 /actionpack/test/template/erb_util_test.rb
parent9a3a4d6aefa7e2ca94340754eb5541bea1783de0 (diff)
downloadrails-d4d352bf94f8d2b6fc5684706ed2b33da77203fd.tar.gz
rails-d4d352bf94f8d2b6fc5684706ed2b33da77203fd.tar.bz2
rails-d4d352bf94f8d2b6fc5684706ed2b33da77203fd.zip
fisting codes so it will parse [#4430 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'actionpack/test/template/erb_util_test.rb')
-rw-r--r--actionpack/test/template/erb_util_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/erb_util_test.rb b/actionpack/test/template/erb_util_test.rb
index 06155b1f30..d3129d0e1a 100644
--- a/actionpack/test/template/erb_util_test.rb
+++ b/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