Sha256: bd212805b9223bce595996e94afca960e88eedd58e865ebef440dc95bd3a6836

Contents?: true

Size: 1.46 KB

Versions: 2

Compression:

Stored size: 1.46 KB

Contents

Feature: Future-dated blog articles
  Scenario: Future-dated articles show up in the preview server
    Given the date is 2012-06-18
    And the Server is running at "future-date-app"
    When I go to "/2011/01/01/new-article.html"
    Then I should see "Newer Article Content"
    When I go to "/2012/06/19/future-article.html"
    Then I should see "This is a future-dated article"
    When I go to "/2012/06/19/future-article/example.txt"
    Then I should see "Example Text"

  Scenario: Future-dated articles don't show up when the environment is not :development
    Given a fixture app "future-date-app"
    And a file named "config.rb" with:
      """
      set :environment, :production
      Time.zone = "Pacific Time (US & Canada)"
      activate :blog do |blog|
        blog.sources = "blog/:year-:month-:day-:title.html"
      end
      """
    Given the date is 2012-06-18
    And the Server is running at "future-date-app"
    When I go to "/2011/01/01/new-article.html"
    Then I should see "Newer Article Content"
    When I go to "/2012/06/19/future-article.html"
    Then I should see "Not Found"
    When I go to "/2012/06/19/future-article/example.txt"
    Then I should see "Not Found"

    Given the date is 2012-06-20
    And the Server is running at "future-date-app"
    When I go to "/2012/06/19/future-article.html"
    Then I should see "This is a future-dated article"
    When I go to "/2012/06/19/future-article/example.txt"
    Then I should see "Example Text"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
middleman-blog-3.1.1 features/future_date.feature
middleman-blog-3.1.0 features/future_date.feature