Sha256: 9f1d50530a4015c4fbff911c3390b6c0214b2d22ade035be9cff6c9dbbcd42ae

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

Feature: Minify HTML
  
  Scenario: Preview HTML with minify_html disabled
    Given a fixture app "basic-app"
    And a file named "config.rb" with:
      """
      """
    And the Server is running at "basic-app"
    When I go to "/index.html"
    Then I should see "13" lines
    
  Scenario: Preview HTML with minify_html enabled
    Given the Server is running at "basic-app"
    When I go to "/index.html"
    Then I should see "1" lines
    When I go to "/foobar.php"
    Then I should see:
    """
    <?php
    echo "foo";
    // a comment
    echo "bar";
    ?>
    """
  
  Scenario: Build HTML with minify_html disabled
    Given a fixture app "basic-app"
    And a file named "config.rb" with:
      """
      """
    And a successfully built app at "basic-app"
    When I cd to "build"
    Then the file "index.html" should contain "    <h1>"
  
  Scenario: Build HTML with minify_html enabled
    Given a fixture app "basic-app"
    And a successfully built app at "basic-app"
    When I cd to "build"
    Then the file "index.html" should contain " <h1> Multi Line </h1> <h2> Broken Up </h2> "
    Then the file "foobar.php" should contain:
    """
    <?php
    echo "foo";
    // a comment
    echo "bar";
    ?>
    """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-minify-html-3.3.0 features/minify.feature