Merge pull request #31027 from PHedkvist/inflector_test_type

Fixed typo in test for activesupport parameterize
This commit is contained in:
Rafael França 2017-11-09 18:25:07 -05:00 committed by GitHub
commit 78fc8530d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -197,7 +197,7 @@ def test_string_parameterized_underscore
end end
def test_string_parameterized_underscore_preserve_case def test_string_parameterized_underscore_preserve_case
StringToParameterizePreserceCaseWithUnderscore.each do |normal, slugged| StringToParameterizePreserveCaseWithUnderscore.each do |normal, slugged|
assert_equal(slugged, normal.parameterize(separator: "_", preserve_case: true)) assert_equal(slugged, normal.parameterize(separator: "_", preserve_case: true))
end end
end end

@ -221,7 +221,7 @@ module InflectorTestCases
"Test with malformed utf8 \251" => "test_with_malformed_utf8" "Test with malformed utf8 \251" => "test_with_malformed_utf8"
} }
StringToParameterizePreserceCaseWithUnderscore = { StringToParameterizePreserveCaseWithUnderscore = {
"Donald E. Knuth" => "Donald_E_Knuth", "Donald E. Knuth" => "Donald_E_Knuth",
"Random text with *(bad)* characters" => "Random_text_with_bad_characters", "Random text with *(bad)* characters" => "Random_text_with_bad_characters",
"With-some-dashes" => "With-some-dashes", "With-some-dashes" => "With-some-dashes",