aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-08-09 19:32:38 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-08-09 19:32:38 -0700
commit279b785839d87aac9caf46c261595fc0965d85a2 (patch)
tree07152a7640802df1ed13235207feb92b125d9282 /activesupport
parent4dda9b644df5e4386f693a4b7bd00fe787f41a28 (diff)
downloadrails-279b785839d87aac9caf46c261595fc0965d85a2.tar.gz
rails-279b785839d87aac9caf46c261595fc0965d85a2.tar.bz2
rails-279b785839d87aac9caf46c261595fc0965d85a2.zip
pare down core_ext dependency
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/multibyte_chars_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb
index 44548982e3..f3c7f50458 100644
--- a/activesupport/test/multibyte_chars_test.rb
+++ b/activesupport/test/multibyte_chars_test.rb
@@ -1,5 +1,4 @@
# encoding: utf-8
-
require 'abstract_unit'
require 'multibyte_test_helpers'
@@ -184,7 +183,7 @@ class MultibyteCharsUTF8BehaviourTest < Test::Unit::TestCase
end
def test_sortability
- words = %w(builder armor zebra).map(&:mb_chars).sort
+ words = %w(builder armor zebra).sort_by { |s| s.mb_chars }
assert_equal %w(armor builder zebra), words
end