Permalink
Browse files

Ruby 1.9 compat: fix regexp slice test

  • Loading branch information...
jeremy committed Sep 13, 2009
1 parent c6fe042 commit 09b197f9576b71200c8537f2da6df1f891bbb931
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/test/multibyte_chars_test.rb
@@ -391,7 +391,7 @@ def test_slice_should_take_character_offsets
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)

0 comments on commit 09b197f

Please sign in to comment.