Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ruby 1.9 compat: fix regexp slice test

  • Loading branch information...
commit 09b197f9576b71200c8537f2da6df1f891bbb931 1 parent c6fe042
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/test/multibyte_chars_test.rb
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.