Sha256: 1da2cb69d16f705fb17247cc93f10ec349e7e2887de0825a89f372742714aa82

Contents?: true

Size: 1.7 KB

Versions: 38

Compression:

Stored size: 1.7 KB

Contents

Feature: Build Clean
  Scenario: Build and Clean an app
    Given a fixture app "clean-app"
    And app "clean-app" is using config "empty"
    And a successfully built app at "clean-app" with flags "--no-clean"
    Then the following files should exist:
      | build/index.html              |
      | build/should_be_ignored.html  |
      | build/should_be_ignored2.html |
      | build/should_be_ignored3.html |
    And app "clean-app" is using config "complications"
    Given a successfully built app at "clean-app"
    Then the following files should not exist:
      | build/should_be_ignored.html  |
      | build/should_be_ignored2.html |
      | build/should_be_ignored3.html |
    And the file "build/index.html" should contain "Comment in layout"

  Scenario: Clean build an app with newly ignored files and a nested output directory
    Given a fixture app "clean-nested-app"
    When a file named "config.rb" with:
      """
      set :build_dir, "sub/dir"
      """
    Given a built app at "clean-nested-app" with flags "--no-clean"
    Then a directory named "sub/dir" should exist
    Then the following directories should exist:
      | sub/dir                    |
      | sub/dir/nested             |
    Then the following files should exist:
      | sub/dir/about.html         |
      | sub/dir/nested/nested.html |
    When a file named "config.rb" with:
      """
      set :build_dir, "sub/dir"
      ignore 'about.html'
      ignore 'nested/*'
      """
    Given a built app at "clean-nested-app"
    Then the following directories should not exist:
      | sub/dir/nested             |
    Then the following files should not exist:
      | sub/dir/about.html         |
      | sub/dir/nested/nested.html |

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
middleman-core-4.0.0.rc.1 features/clean_build.feature
middleman-core-3.4.0 features/clean_build.feature
middleman-core-4.0.0.beta.2 features/clean_build.feature
middleman-core-3.3.12 features/clean_build.feature
middleman-core-4.0.0.beta.1 features/clean_build.feature
middleman-core-3.3.11 features/clean_build.feature
middleman-core-3.3.10 features/clean_build.feature
middleman-core-3.3.9 features/clean_build.feature
middleman-core-3.3.8 features/clean_build.feature
middleman-core-4.0.0.alpha.6 features/clean_build.feature
middleman-core-4.0.0.alpha.5 features/clean_build.feature
middleman-core-4.0.0.alpha.4 features/clean_build.feature
middleman-core-4.0.0.alpha.3 features/clean_build.feature
middleman-core-3.3.7 features/clean_build.feature
middleman-core-3.3.6 features/clean_build.feature
middleman-core-4.0.0.alpha.2 features/clean_build.feature
middleman-core-3.3.5 features/clean_build.feature
middleman-core-cj-3.3.6 features/clean_build.feature
middleman-core-cj-3.3.5 features/clean_build.feature
middleman-core-cj-3.3.4 features/clean_build.feature