Feature that should test ordering of titles on the same day

This commit is contained in:
Urban Hafner 2009-06-02 20:36:11 +03:00
parent 5bbdf2239d
commit d8d7ae3f0e
1 changed files with 13 additions and 0 deletions

View File

@ -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"