test/test_post.rb in jekyll-0.11.2 vs test/test_post.rb in jekyll-0.12.0

- old
+ new

@@ -139,9 +139,22 @@ assert_equal "/:categories/:year/:month/:day/:title.html", @post.template assert_equal "/food/beer/2008/09/09/foo-bar.html", @post.url end end + context "with space (categories)" do + setup do + @post.categories << "French cuisine" + @post.categories << "Belgian beer" + @post.process(@fake_file) + end + + should "process the url correctly" do + assert_equal "/:categories/:year/:month/:day/:title.html", @post.template + assert_equal "/French%20cuisine/Belgian%20beer/2008/09/09/foo-bar.html", @post.url + end + end + context "with none style" do setup do @post.site.permalink_style = :none @post.process(@fake_file) end