aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-09-13 05:30:59 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-09-13 05:31:43 -0700
commit7d2add8c966b318144bb5c5c43112cc02341ead4 (patch)
treec162515e5223731b9a38fef71fe8b78acfc32b72
parentcce2112f12324f5e44e31060f840821c81b2dbf1 (diff)
downloadrails-7d2add8c966b318144bb5c5c43112cc02341ead4.tar.gz
rails-7d2add8c966b318144bb5c5c43112cc02341ead4.tar.bz2
rails-7d2add8c966b318144bb5c5c43112cc02341ead4.zip
Ruby 1.9 compat: fix regexp slice test
-rw-r--r--activesupport/test/multibyte_chars_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb
index ed37a1a0da..680936ded5 100644
--- a/activesupport/test/multibyte_chars_test.rb
+++ b/activesupport/test/multibyte_chars_test.rb
@@ -390,7 +390,7 @@ class MultibyteCharsUTF8BehaviourTest < Test::Unit::TestCase
assert_equal 'ちわ', @chars.slice(2..10)
assert_equal '', @chars.slice(4..10)
assert_equal 'に', @chars.slice(/に/u)
- assert_equal 'にち', @chars.slice(/に\w/u)
+ assert_equal 'にち', @chars.slice(/に./u)
assert_equal nil, @chars.slice(/unknown/u)
assert_equal 'にち', @chars.slice(/(にち)/u, 1)
assert_equal nil, @chars.slice(/(にち)/u, 2)