mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/erb/test_erb.rb (test_html_escape): add assertions for the
cases where the argument is not a String. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a2884195e7
commit
f42a7c0951
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 14 16:25:46 2012 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* test/erb/test_erb.rb (test_html_escape): add assertions for the
|
||||
cases where the argument is not a String.
|
||||
|
||||
Tue Aug 14 16:03:31 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (check_valid_dir): reject "..." as directory name.
|
||||
|
|
|
@ -46,6 +46,9 @@ class TestERB < Test::Unit::TestCase
|
|||
assert_equal("", ERB::Util.html_escape(""))
|
||||
assert_equal("abc", ERB::Util.html_escape("abc"))
|
||||
assert_equal("<<", ERB::Util.html_escape("<<"))
|
||||
|
||||
assert_equal("", ERB::Util.html_escape(nil))
|
||||
assert_equal("123", ERB::Util.html_escape(123))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue