Sha256: 6afa29acba0ac4a6251d5a96f0168e50cdf83509370032715b645e7fa0864de6

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

@wip @nojava
Feature: Stylus Updates and Partials
  Scenario: The preview server should update stylesheets when Stylus changes
    Given the Server is running at "stylus-preview-app"
    And the file "source/stylesheets/plain.css.styl" has the contents
      """
      red
        color: #f0f0f0
      """
    When I go to "/stylesheets/plain.css"
    Then I should see "color: #f0f0f0;"
    And the file "source/stylesheets/plain.css.styl" has the contents
      """
      red
        color: #0f0f0f
      """
    When I go to "/stylesheets/plain.css"
    Then I should see "color: #0f0f0f;"

  Scenario: The preview server should update stylesheets when Stylus partials change
    Given the Server is running at "stylus-preview-app"
    And the file "source/stylesheets/main.css.styl" has the contents
      """
      @import '_partial'

      red
        color: #f0f0f0
      """
    And the file "source/stylesheets/_partial.styl" has the contents
      """
      body
        font-size: 14px
      """
    When I go to "/stylesheets/main.css"
    Then I should see "color: #f0f0f0;"
    And I should see "font-size: 14px;"
    And the file "source/stylesheets/main.css.styl" has the contents
      """
      @import '_partial'

      red
        color: #0f0f0f
      """
    And the file "source/stylesheets/_partial.styl" has the contents
      """
      body
        font-size: 18px
      """
    When I go to "/stylesheets/main.css"
    Then I should see "color: #0f0f0f;"
    And I should see "font-size: 18px"

  Scenario: Stylus partials should work when building
    Given a successfully built app at "stylus-preview-app"
    Then the file "build/stylesheets/main.css" should contain "font-size: 18px"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-core-3.4.1 features/stylus.feature