Sha256: c210232534aa34b871927b77cac4d568c3f3791cca983078bb666491f79bce4a

Contents?: true

Size: 1.95 KB

Versions: 24

Compression:

Stored size: 1.95 KB

Contents

Feature: Ignoring paths
  Scenario: Ignore with directory indexes (source file, build)
    Given a fixture app "ignore-app"
    And a file named "config.rb" with:
      """
      activate :directory_indexes
      ignore 'about.html.erb'
      ignore 'plain.html'
      """
    And a successfully built app at "ignore-app"
    Then the following files should exist:
      | build/index.html |
    And the following files should not exist:
      | build/about/index.html |
      | build/plain/index.html |
    
  Scenario: Ignore with directory indexes (source file, server)
    Given a fixture app "ignore-app"
    And a file named "config.rb" with:
      """
      activate :directory_indexes
      ignore 'about.html.erb'
      ignore 'plain.html'
      """
    And the Server is running
    When I go to "/index.html"
    Then I should not see "File Not Found"
    When I go to "/about/index.html"
    Then I should see "File Not Found"
    When I go to "/plain/index.html"
    Then I should see "File Not Found"
  
  Scenario: Ignore with directory indexes (output path splat, build)
    Given a fixture app "ignore-app"
    And a file named "config.rb" with:
      """
      activate :directory_indexes
      ignore 'about*'
      ignore 'plain*'
      """
    And a successfully built app at "ignore-app"
    Then the following files should exist:
      | build/index.html |
    And the following files should not exist:
      | build/about/index.html |
      | build/plain/index.html |
    
  Scenario: Ignore with directory indexes (output path splat, server)
    Given a fixture app "ignore-app"
    And a file named "config.rb" with:
      """
      activate :directory_indexes
      ignore 'about*'
      ignore 'plain*'
      """
    And the Server is running
    When I go to "/index.html"
    Then I should not see "File Not Found"
    When I go to "/about/index.html"
    Then I should see "File Not Found"
    When I go to "/plain/index.html"
    Then I should see "File Not Found"

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
middleman-more-3.0.14 features/ignore.feature
middleman-more-3.1.0.beta.3 features/ignore.feature
middleman-more-3.1.0.beta.2 features/ignore.feature
middleman-more-3.1.0.beta.1 features/ignore.feature
middleman-more-3.0.13 features/ignore.feature
middleman-more-3.0.12 features/ignore.feature
middleman-more-3.0.12.pre.1 features/ignore.feature
middleman-more-3.0.11 features/ignore.feature
middleman-more-3.0.10.pre.1 features/ignore.feature
middleman-more-3.0.9 features/ignore.feature
middleman-more-3.0.8 features/ignore.feature
middleman-more-3.0.8.pre.2 features/ignore.feature
middleman-more-3.0.8.pre.1 features/ignore.feature
middleman-more-3.0.7 features/ignore.feature
middleman-more-3.0.6 features/ignore.feature
middleman-more-3.0.5 features/ignore.feature
middleman-more-3.0.4 features/ignore.feature
middleman-more-3.0.2 features/ignore.feature
middleman-more-3.0.1.pre features/ignore.feature
middleman-more-3.0.0 features/ignore.feature