diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2019-07-17 12:18:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-17 12:18:52 -0400 |
commit | 6a50498618c2b9a316c3b28f6cb45bdaa70726ad (patch) | |
tree | 19eac18ee91b8ac284163b79df74af5d25c7d22b /activesupport/test/transliterate_test.rb | |
parent | e4747a4965ad7f081f6c66cadcadffe0545e4025 (diff) | |
parent | 0deecc781a53f7125abecb4b1d301fb76b6a2bb5 (diff) | |
download | rails-6a50498618c2b9a316c3b28f6cb45bdaa70726ad.tar.gz rails-6a50498618c2b9a316c3b28f6cb45bdaa70726ad.tar.bz2 rails-6a50498618c2b9a316c3b28f6cb45bdaa70726ad.zip |
Merge pull request #36700 from cpruitt/revert-36690-make-parameterize-requires-utf-8-explicit
Revert "Make UTF-8 string requirement explicit for `ActiveSupport::Inflector.transliterate`"
Diffstat (limited to 'activesupport/test/transliterate_test.rb')
-rw-r--r-- | activesupport/test/transliterate_test.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/test/transliterate_test.rb b/activesupport/test/transliterate_test.rb index 525b4a8559..9e29a93ea0 100644 --- a/activesupport/test/transliterate_test.rb +++ b/activesupport/test/transliterate_test.rb @@ -57,12 +57,4 @@ class TransliterateTest < ActiveSupport::TestCase end assert_equal "Can only transliterate strings. Received Object", exception.message end - - def test_transliterate_handles_non_unicode_strings - ascii_8bit_string = "A".b - exception = assert_raises ArgumentError do - assert_equal "A", ActiveSupport::Inflector.transliterate(ascii_8bit_string) - end - assert_equal "Can only transliterate UTF-8 strings. Received string with encoding ASCII-8BIT", exception.message - end end |