Feature that should test ordering of titles on the same day
This commit is contained in:
parent
5bbdf2239d
commit
d8d7ae3f0e
|
@ -59,3 +59,16 @@ Feature: Site data
|
|||
When I run jekyll
|
||||
Then the _site directory should exist
|
||||
And I should see "Yuengling" in "_site/index.html"
|
||||
|
||||
Scenario: Order Posts by name when on the same date
|
||||
Given I have a _posts directory
|
||||
And I have an "index.html" page that contains "{% for post in site.posts %}{{ post.title }}:{{ post.previous.title}},{{ post.next.title}} {% endfor %}"
|
||||
And I have the following posts:
|
||||
| title | date | content |
|
||||
| A | 3/26/2009 | A |
|
||||
| B | 3/26/2009 | B |
|
||||
| C | 3/26/2009 | C |
|
||||
When I run jekyll
|
||||
Then the _site directory should exist
|
||||
And I should see "C:B, B:A,C A:,B" in "_site/index.html"
|
||||
|
Loading…
Reference in New Issue