aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-11-09 21:39:32 +0100
committerXavier Noria <fxn@hashref.com>2009-11-09 22:16:51 +0100
commitb6598c683bb8f8ef484f54755cced77a5d6200bb (patch)
tree75c288ece09c5a030e59c2589fb2874eb282edb1 /activesupport/test
parentc0bb4c6ed2f5a5676569746e7bfd70405346ef8f (diff)
downloadrails-b6598c683bb8f8ef484f54755cced77a5d6200bb.tar.gz
rails-b6598c683bb8f8ef484f54755cced77a5d6200bb.tar.bz2
rails-b6598c683bb8f8ef484f54755cced77a5d6200bb.zip
String#each_char is not needed for Ruby >= 1.8.7
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb
index dd9e9e0ebb..ffcd086716 100644
--- a/activesupport/test/core_ext/string_ext_test.rb
+++ b/activesupport/test/core_ext/string_ext_test.rb
@@ -206,17 +206,6 @@ class StringInflectionsTest < Test::Unit::TestCase
# And changes the original string:
assert_equal original, expected
end
-
- if RUBY_VERSION < '1.9'
- def test_each_char_with_utf8_string_when_kcode_is_utf8
- with_kcode('UTF8') do
- '€2.99'.each_char do |char|
- assert_not_equal 1, char.length
- break
- end
- end
- end
- end
end
class StringBehaviourTest < Test::Unit::TestCase