added a plus to permalink
This commit is contained in:
parent
5c47014c90
commit
7e79b9df92
|
@ -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 }}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue