Update unescaped string test

Nothing was being tested without explicitly making the string
encoding ASCII.
This commit is contained in:
Alberto Grespan 2014-05-20 17:04:00 -04:30
parent 7ce849a2b6
commit 879184fe37
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class TestPost < Test::Unit::TestCase
end
should "return a UTF-8 unescaped string" do
assert_equal Encoding::UTF_8, URL.unescape_path("/rails%E7%AC%94%E8%AE%B0/2014/04/20/escaped/").encoding
assert_equal Encoding::UTF_8, URL.unescape_path("/rails%E7%AC%94%E8%AE%B0/2014/04/20/escaped/".encode(Encoding::ASCII)).encoding
end
should "respect permalink in yaml front matter" do