Sha256: 595a9ed98372be30b99e4fc9f481ae12820318697deb96b53e0373996b962c19

Contents?: true

Size: 1.85 KB

Versions: 2

Compression:

Stored size: 1.85 KB

Contents

Feature: Blog sources

  Scenario: Blog articles can live under a different structure than their permalink

    Given the Server is running at "blog-sources-app"

    When I go to "/2011/01/01/new-article.html"
    Then I should see "/2011/01/01/new-article.html"

    When I go to "/blog/2001-01-01-new-article.html"
    Then I should see "Not Found"

    When I go to "/"
    Then I should see "/2011/01/01/new-article.html"

  Scenario: Blog articles can omit the day part

    Given the Server is running at "blog-sources-no-day-app"

    When I go to "/2012/08/01/testing.html"
    Then I should see "Testing Article"

  Scenario: Blog article sources can omit the title part

    Given the Server is running at "blog-sources-no-title-app"

    When I go to "/2013/08/07/testing-article.html"
    Then I should see "/2013/08/07/testing-article.html"

  Scenario: Slug can be specified in frontmatter

    Given the Server is running at "blog-sources-no-title-app"

    When I go to "/2013/08/08/slug-from-frontmatter.html"
    Then I should see "Article with slug specified in frontmatter"

    Given the Server is running at "blog-sources-app"

    When I go to "/2013/08/08/slug-from-frontmatter.html"
    Then I should see "Article with slug specified in frontmatter"

  Scenario: There can be subdirectories in the blog sources dir

    Given the Server is running at "blog-sources-subdirs-app"

    When I go to "/blog.html"
    Then I should see "Yet another post"
      And I should see "Another post"

  Scenario: Blog sources may not include the date in the filename

    Given the Server is running at "blog-sources-no-date-app"

    When I go to "/2011/01/01/new-article.html"
    Then I should see "/2011/01/01/new-article.html"

    When I go to "/blog/new-article.html"
    Then I should see "Not Found"

    When I go to "/"
    Then I should see "/2011/01/01/new-article.html"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
middleman-blog-4.0.3 features/blog_sources.feature
middleman-blog-4.0.2 features/blog_sources.feature