Change test to make it pass in Ruby 1.9.3

This commit is contained in:
Alberto Grespan 2014-05-19 22:08:14 -04:30
parent 77cef764d6
commit 2a1054b1a8
1 changed files with 2 additions and 2 deletions

View File

@ -101,11 +101,11 @@ class TestPost < Test::Unit::TestCase
end end
should "return a UTF-8 escaped string" do should "return a UTF-8 escaped string" do
assert_equal Encoding::UTF_8, URL.escape_path("/rails笔记/2014/04/20/escaped/").encoding assert_equal Encoding::UTF_8, URL.escape_path("/2014/04/20/escaped/").encoding
end end
should "return a UTF-8 unescaped string" do 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("/2014/04/20/escaped/").encoding
end end
should "respect permalink in yaml front matter" do should "respect permalink in yaml front matter" do