diff --git a/features/site_data.feature b/features/site_data.feature index 46d36cac..18786254 100644 --- a/features/site_data.feature +++ b/features/site_data.feature @@ -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" + \ No newline at end of file