added a plus to permalink

This commit is contained in:
Anand Narayan 2013-06-15 23:18:31 +05:30
parent 5c47014c90
commit 7e79b9df92
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
--- ---
layout: default layout: default
title : Page inside + title : Page inside +
permalink: plus+in+url
--- ---
Line 1 Line 1
{{ page.title }} {{ page.title }}

View File

@ -127,13 +127,13 @@ class TestPage < Test::Unit::TestCase
assert File.exists?(File.join(dest_dir, 'contacts.html')) assert File.exists?(File.join(dest_dir, 'contacts.html'))
end end
should "write even when the folder name is plus" do should "write even when the folder name is plus and permalink has +" do
page = setup_page('+', 'foo.md') page = setup_page('+', 'foo.md')
do_render(page) do_render(page)
page.write(dest_dir) page.write(dest_dir)
assert File.directory?(dest_dir) assert File.directory?(dest_dir)
assert File.exists?(File.join(dest_dir, '+', 'foo.html')) assert File.exists?(File.join(dest_dir, '+', 'plus+in+url'))
end end
should "write properly without html extension" do should "write properly without html extension" do