Sha256: 95d36ee3bd8e4713645498dd344452ca5ebb9d2ab581e2df1065933c74f1bb2c

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

Feature: Minify HTML
  
  Scenario: Preview HTML with minify_html disabled
    Given "minify_html" feature is "disabled"
    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 "minify_html" feature is "enabled"
    And 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 file named "config.rb" with:
      """
      activate :minify_html
      """
    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

2 entries across 2 versions & 1 rubygems

Version Path
middleman-minify-html-3.1.1 features/minify.feature
middleman-minify-html-3.1.0 features/minify.feature