Upgrade to Rails 2.0.2
Upgraded to Rails 2.0.2, except that we maintain vendor/rails/actionpack/lib/action_controller/routing.rb from Rail 1.2.6 (at least for now), so that Routes don't change. We still get to enjoy Rails's many new features. Also fixed a bug in Chunk-handling: disable WikiWord processing in tags (for real this time).
This commit is contained in:
parent
0f6889e09f
commit
6873fc8026
1083 changed files with 52810 additions and 41058 deletions
|
@ -81,6 +81,8 @@ class CharsTest < Test::Unit::TestCase
|
|||
with_kcode('UTF8') do
|
||||
assert_equal 9, (@s[:utf8].chars =~ /ffi/),
|
||||
"Regex matching should be unicode aware"
|
||||
assert_nil((''.chars =~ /\d+/),
|
||||
"Non-matching regular expressions should return nil")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -118,7 +120,7 @@ class CharsTest < Test::Unit::TestCase
|
|||
|
||||
def test_passthrough_on_kcode
|
||||
# The easiest way to check if the passthrough is in place is through #size
|
||||
with_kcode('nonce') do
|
||||
with_kcode('none') do
|
||||
assert_equal 26, @s[:utf8].chars.size
|
||||
end
|
||||
with_kcode('UTF8') do
|
||||
|
@ -151,6 +153,13 @@ class CharsTest < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_duck_typing
|
||||
assert_equal true, 'test'.chars.respond_to?(:strip)
|
||||
assert_equal true, 'test'.chars.respond_to?(:normalize)
|
||||
assert_equal true, 'test'.chars.respond_to?(:normalize!)
|
||||
assert_equal false, 'test'.chars.respond_to?(:a_method_that_doesnt_exist)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def with_kcode(kcode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue