Add tests to the ? in page name fix (#1641)

This commit is contained in:
Nikita Ivanov
2020-12-14 15:24:50 +05:00
committed by GitHub
parent c87c8c446e
commit 97ed5a7c57
+5
View File
@@ -138,4 +138,9 @@ EOS
@view.instance_variable_set :@content, page.formatted_data @view.instance_variable_set :@content, page.formatted_data
assert_equal @view.breadcrumb, '' assert_equal @view.breadcrumb, ''
end end
test "links to pages containing ?" do
@view = Precious::Views::Page.new
assert_equal @view.page_route("Page?"), '/Page%3F'
end
end end