aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/journey/router/utils_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/journey/router/utils_test.rb')
-rw-r--r--actionpack/test/journey/router/utils_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/journey/router/utils_test.rb b/actionpack/test/journey/router/utils_test.rb
index a69b606b01..646563f7ab 100644
--- a/actionpack/test/journey/router/utils_test.rb
+++ b/actionpack/test/journey/router/utils_test.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
require "abstract_unit"
module ActionDispatch
@@ -37,6 +38,10 @@ module ActionDispatch
path = "/foo%AAbar%AAbaz".b
assert_equal Encoding::ASCII_8BIT, Utils.normalize_path(path).encoding
end
+
+ def test_normalize_path_with_nil
+ assert_equal '/', Utils.normalize_path(nil)
+ end
end
end
end