Sha256: b6d19d4f8ba48ba352752d72237647f689e7327d8b115888bb37250db6427737

Contents?: true

Size: 769 Bytes

Versions: 7

Compression:

Stored size: 769 Bytes

Contents

Feature: Files can be ignored from within blog
  Scenario: A file can be ignored
    Given a fixture app "preview-app"
    And a file named "config.rb" with:
      """
      activate :blog do |blog|
        blog.sources = ":year/:month/:day/:title.html"
      end
      ignore '2011/01/02/newer-article.html'
      """
    # This file would give an error if it weren't ignored
    And a file named "source/2011/01/02/newer-article.html.markdown" with:
      """
      ---
      title: "Newer Article"
      date: 2013-01-15
      ---

      Newer Article Content
      """
    Given the Server is running
    When I go to "/2011/01/01/new-article.html"
    Then I should see "Article"
    When I go to "/2011/01/02/newer-article.html"
    Then I should see "Not Found"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
middleman-blog-4.0.3 features/ignored_files.feature
middleman-blog-4.0.2 features/ignored_files.feature
middleman-blog-4.0.1 features/ignored_files.feature
middleman-blog-4.0.0 features/ignored_files.feature
middleman-blog-3.6.0.beta.2 features/ignored_files.feature
middleman-blog-3.5.3 features/ignored_files.feature
middleman-blog-3.5.2 features/ignored_files.feature