From 44e44b42d9226c089f00970ced796c83f193f262 Mon Sep 17 00:00:00 2001 From: Manfred Stienstra Date: Sun, 21 Sep 2008 17:47:19 +0200 Subject: Deprecated String#chars in favor of String#mb_chars. --- activesupport/test/core_ext/string_ext_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activesupport/test/core_ext/string_ext_test.rb') diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb index fe5ce276c5..b086c957fe 100644 --- a/activesupport/test/core_ext/string_ext_test.rb +++ b/activesupport/test/core_ext/string_ext_test.rb @@ -226,6 +226,12 @@ class CoreExtStringMultibyteTest < Test::Unit::TestCase def test_core_ext_adds_chars assert UNICODE_STRING.respond_to?(:chars) end + + def test_chars_warns_about_deprecation + assert_deprecated("String#chars") do + ''.chars + end + end end if RUBY_VERSION < '1.9' -- cgit v1.2.3