aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/string_ext_test.rb
diff options
context:
space:
mode:
authorManfred Stienstra <manfred@fngtps.com>2008-09-21 17:47:19 +0200
committerManfred Stienstra <manfred@fngtps.com>2008-09-21 17:47:19 +0200
commit44e44b42d9226c089f00970ced796c83f193f262 (patch)
tree6b797baef03657729e8a0bc4e000355a22acb73d /activesupport/test/core_ext/string_ext_test.rb
parent3c9eedec3c17861c354635a33f3012e85083301f (diff)
downloadrails-44e44b42d9226c089f00970ced796c83f193f262.tar.gz
rails-44e44b42d9226c089f00970ced796c83f193f262.tar.bz2
rails-44e44b42d9226c089f00970ced796c83f193f262.zip
Deprecated String#chars in favor of String#mb_chars.
Diffstat (limited to 'activesupport/test/core_ext/string_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb6
1 files changed, 6 insertions, 0 deletions
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'