diff options
author | Manfred Stienstra <manfred@fngtps.com> | 2008-09-21 17:27:25 +0200 |
---|---|---|
committer | Manfred Stienstra <manfred@fngtps.com> | 2008-09-21 17:27:25 +0200 |
commit | 7329990d868d10e4fbf541097cd5be8f1254e2ce (patch) | |
tree | 9c221c79e1a62127859f21895648ba30aa10c93e /activerecord | |
parent | 8abef4fd0df828e79be6b9fadd8f45c575ab817c (diff) | |
download | rails-7329990d868d10e4fbf541097cd5be8f1254e2ce.tar.gz rails-7329990d868d10e4fbf541097cd5be8f1254e2ce.tar.bz2 rails-7329990d868d10e4fbf541097cd5be8f1254e2ce.zip |
Change all calls to String#chars to String#mb_chars. Remove a exception for Ruby <= 1.9.
Diffstat (limited to 'activerecord')
-rwxr-xr-x[-rw-r--r--] | activerecord/test/cases/base_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index aebcca634c..1c31b1fa7b 100644..100755 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1442,8 +1442,8 @@ class BasicsTest < ActiveRecord::TestCase topic = Topic.create(:author_name => str) assert_equal str, topic.author_name - assert_kind_of ActiveSupport::Multibyte::Chars, str.chars - topic = Topic.find_by_author_name(str.chars) + assert_kind_of ActiveSupport::Multibyte.proxy_class, str.mb_chars + topic = Topic.find_by_author_name(str.mb_chars) assert_kind_of Topic, topic assert_equal str, topic.author_name, "The right topic should have been found by name even with name passed as Chars" |