Test all cases for post_url modifications. #998
This commit is contained in:
parent
9179f56ed7
commit
20334aabbe
|
@ -211,7 +211,10 @@ CONTENT
|
|||
title: Post linking
|
||||
---
|
||||
|
||||
{% post_url es/2008-11-21-nested %}
|
||||
- 1 {% post_url 2008-11-21-complex %}
|
||||
- 2 {% post_url /2008-11-21-complex %}
|
||||
- 3 {% post_url es/2008-11-21-nested %}
|
||||
- 4 {% post_url /es/2008-11-21-nested %}
|
||||
CONTENT
|
||||
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
|
||||
end
|
||||
|
@ -220,8 +223,14 @@ CONTENT
|
|||
assert_no_match /markdown\-html\-error/, @result
|
||||
end
|
||||
|
||||
should "have the url to the \"complex\" post from 2008-11-21" do
|
||||
assert_match %r{/2008/11/21/nested/}, @result
|
||||
should "have the url to the \"nested\" post from 2008-11-21" do
|
||||
assert_match %r{1\s/2008/11/21/complex/}, @result
|
||||
assert_match %r{2\s/2008/11/21/complex/}, @result
|
||||
end
|
||||
|
||||
should "have the url to the \"nested\" post from 2008-11-21" do
|
||||
assert_match %r{3\s/2008/11/21/nested/}, @result
|
||||
assert_match %r{4\s/2008/11/21/nested/}, @result
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue