Sha256: 6f4d04981242258a3ee7f4d99a1d955cab2ba4aa5d2105bd7a288589bfecb7c3

Contents?: true

Size: 1.98 KB

Versions: 84

Compression:

Stored size: 1.98 KB

Contents

Feature: Ignoring paths
  Scenario: Ignore with directory indexes (source file, build)
    Given a fixture app "more-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 "more-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 "more-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 "more-ignore-app"
    And a file named "config.rb" with:
      """
      activate :directory_indexes
      ignore 'about*'
      ignore 'plain*'
      """
    And a successfully built app at "more-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 "more-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

84 entries across 84 versions & 4 rubygems

Version Path
middleman-core-4.5.1 features/more-ignore.feature
middleman-core-4.5.0 features/more-ignore.feature
middleman-core-4.4.3 features/more-ignore.feature
middleman-core-4.4.2 features/more-ignore.feature
middleman-core-4.4.0 features/more-ignore.feature
middleman-core-4.3.11 features/more-ignore.feature
middleman-core-4.3.10 features/more-ignore.feature
middleman-core-4.3.8 features/more-ignore.feature
middleman-core-4.3.7 features/more-ignore.feature
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/features/more-ignore.feature
middleman-core-4.3.6 features/more-ignore.feature
middleman-core-4.3.5 features/more-ignore.feature
middleman-core-4.3.4 features/more-ignore.feature
middleman-core-4.3.3 features/more-ignore.feature
middleman-core-4.3.2 features/more-ignore.feature
middleman-core-4.3.1 features/more-ignore.feature
middleman-core-4.3.0 features/more-ignore.feature
middleman-core-4.3.0.rc.4 features/more-ignore.feature
middleman-core-4.3.0.rc.3 features/more-ignore.feature
middleman-core-4.3.0.rc.2 features/more-ignore.feature