From d8d7ae3f0ec2189f5c637538c311b75a098b09f9 Mon Sep 17 00:00:00 2001 From: Urban Hafner Date: Tue, 2 Jun 2009 20:36:11 +0300 Subject: [PATCH] Feature that should test ordering of titles on the same day --- features/site_data.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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