aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/string_ext_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-05 23:07:01 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-05 23:07:01 -0200
commit6cc3afb00a0d7689f5435a3845fd17266d935c3e (patch)
tree732a6821d5eb50a7d68c37514c109edce87eef89 /activesupport/test/core_ext/string_ext_test.rb
parent84fe7b7db64352c0186a9d2a51f4eb32d2825d2a (diff)
parent26698fb91d88dca0f860adcb80528d8d3f0f6285 (diff)
downloadrails-6cc3afb00a0d7689f5435a3845fd17266d935c3e.tar.gz
rails-6cc3afb00a0d7689f5435a3845fd17266d935c3e.tar.bz2
rails-6cc3afb00a0d7689f5435a3845fd17266d935c3e.zip
Merge pull request #13953 from seanwalbran/fix-humanize-match-reference
fix interplay of humanize and html_escape
Diffstat (limited to 'activesupport/test/core_ext/string_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb
index d4f8ba8cdd..072b970a2d 100644
--- a/activesupport/test/core_ext/string_ext_test.rb
+++ b/activesupport/test/core_ext/string_ext_test.rb
@@ -161,6 +161,10 @@ class StringInflectionsTest < ActiveSupport::TestCase
end
end
+ def test_humanize_with_html_escape
+ assert_equal 'Hello', ERB::Util.html_escape("hello").humanize
+ end
+
def test_ord
assert_equal 97, 'a'.ord
assert_equal 97, 'abc'.ord