Permalink
Browse files

add a set of steps in site_configuration.feature

this set of steps allow the test to pass when DST in not currently active.
They may fail when DST becomes active.
  • Loading branch information...
1 parent d70b4d0 commit c6fe7ec57f19afe31813fdd34e22656fe4bf7522 @ashmaroli ashmaroli committed Dec 6, 2016
Showing with 4 additions and 2 deletions.
  1. +4 −2 features/site_configuration.feature
@@ -172,8 +172,10 @@ Feature: Site configuration
Then I should get a zero exit status
And the _site directory should exist
And I should see "Page Layout: 2" in "_site/index.html"
- And I should see "Post Layout: <p>content for entry1.</p>\n built at 2013-04-09T23:22:00-04:00" in "_site/2013/04/09/entry1.html"
- And I should see "Post Layout: <p>content for entry2.</p>\n built at 2013-04-10T03:14:00-04:00" in "_site/2013/04/10/entry2.html"
+ And I should see "Post Layout: <p>content for entry1.</p>\n built at 2013-04-09T23:22:00-04:00" in "_site/2013/04/09/entry1.html" unless Windows
+ And I should see "Post Layout: <p>content for entry1.</p>\n built at 2013-04-09T22:22:00-05:00" in "_site/2013/04/09/entry1.html" if on Windows
+ And I should see "Post Layout: <p>content for entry2.</p>\n built at 2013-04-10T03:14:00-04:00" in "_site/2013/04/10/entry2.html" unless Windows
+ And I should see "Post Layout: <p>content for entry2.</p>\n built at 2013-04-10T02:14:00-05:00" in "_site/2013/04/10/entry2.html" if on Windows
Scenario: Generate proper dates with explicitly set timezone (different than posts' time)
Given I have a _layouts directory

0 comments on commit c6fe7ec

Please sign in to comment.