aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/string_ext_test.rb
diff options
context:
space:
mode:
authorManfred Stienstra <manfred@fngtps.com>2008-09-11 22:38:20 +0200
committerMichael Koziarski <michael@koziarski.com>2008-09-11 22:51:26 +0200
commitbabbc1580da9e4a23921ab68d47c7c0d2e8447da (patch)
tree5f84cc282530fc8510812c9ca2b75f32e93f348f /activesupport/test/core_ext/string_ext_test.rb
parent923f4ecad202e45ef117d592053c8b86549eb9d7 (diff)
downloadrails-babbc1580da9e4a23921ab68d47c7c0d2e8447da.tar.gz
rails-babbc1580da9e4a23921ab68d47c7c0d2e8447da.tar.bz2
rails-babbc1580da9e4a23921ab68d47c7c0d2e8447da.zip
Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars values.
- Adds String#acts_like_string? - Adds Chars#acts_like_string? Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1029 state:committed]
Diffstat (limited to 'activesupport/test/core_ext/string_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb
index c9f959ef32..c0decf2c3f 100644
--- a/activesupport/test/core_ext/string_ext_test.rb
+++ b/activesupport/test/core_ext/string_ext_test.rb
@@ -201,3 +201,9 @@ class StringInflectionsTest < Test::Unit::TestCase
end
end
end
+
+class StringBehaviourTest < Test::Unit::TestCase
+ def test_acts_like_string
+ assert 'Bambi'.acts_like_string?
+ end
+end \ No newline at end of file