diff options
Diffstat (limited to 'activesupport/test/transliterate_test.rb')
-rw-r--r-- | activesupport/test/transliterate_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/transliterate_test.rb b/activesupport/test/transliterate_test.rb index 9e29a93ea0..620bb20305 100644 --- a/activesupport/test/transliterate_test.rb +++ b/activesupport/test/transliterate_test.rb @@ -57,4 +57,12 @@ class TransliterateTest < ActiveSupport::TestCase end assert_equal "Can only transliterate strings. Received Object", exception.message end + + def test_transliterate_handles_ascci_8bit_strings + ascii_8bit_string = "A".b + exception = assert_raises ArgumentError do + ActiveSupport::Inflector.transliterate(ascii_8bit_string) + end + assert_equal "Can not transliterate strings with ASCII-8BIT encoding", exception.message + end end |