aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorPierre Hedkvist <pierre.hedkvist@gmail.com>2017-11-01 10:27:29 +0000
committerPierre Hedkvist <pierre.hedkvist@gmail.com>2017-11-01 10:27:29 +0000
commit1ede34697539d5094090c7c8e3ab95359f706904 (patch)
tree9b815874d4a30995cf2844b83373d2ae7a9b2b8d /activesupport
parent0931e17ebf621e5518bc0546ea13268420f989ee (diff)
downloadrails-1ede34697539d5094090c7c8e3ab95359f706904.tar.gz
rails-1ede34697539d5094090c7c8e3ab95359f706904.tar.bz2
rails-1ede34697539d5094090c7c8e3ab95359f706904.zip
Fixed typo in test for activesupport parameterize
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb2
-rw-r--r--activesupport/test/inflector_test_cases.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb
index 9fd6d8ac0f..5c5abe9fd1 100644
--- a/activesupport/test/core_ext/string_ext_test.rb
+++ b/activesupport/test/core_ext/string_ext_test.rb
@@ -197,7 +197,7 @@ class StringInflectionsTest < ActiveSupport::TestCase
end
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))
end
end
diff --git a/activesupport/test/inflector_test_cases.rb b/activesupport/test/inflector_test_cases.rb
index f1214671ce..689370cccf 100644
--- a/activesupport/test/inflector_test_cases.rb
+++ b/activesupport/test/inflector_test_cases.rb
@@ -221,7 +221,7 @@ module InflectorTestCases
"Test with malformed utf8 \251" => "test_with_malformed_utf8"
}
- StringToParameterizePreserceCaseWithUnderscore = {
+ StringToParameterizePreserveCaseWithUnderscore = {
"Donald E. Knuth" => "Donald_E_Knuth",
"Random text with *(bad)* characters" => "Random_text_with_bad_characters",
"With-some-dashes" => "With-some-dashes",