Sha256: c0fc1de9eb0f78a7ccca57b279a8f4aefdd82c0c294aed8f85f3c52d0bfd5a53

Contents?: true

Size: 1.66 KB

Versions: 39

Compression:

Stored size: 1.66 KB

Contents

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

39 entries across 39 versions & 3 rubygems

Version Path
middleman-core-4.3.11 features/stylus.feature
middleman-core-4.3.10 features/stylus.feature
middleman-core-4.3.8 features/stylus.feature
middleman-core-4.3.7 features/stylus.feature
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/features/stylus.feature
middleman-core-4.3.6 features/stylus.feature
middleman-core-4.3.5 features/stylus.feature
middleman-core-4.3.4 features/stylus.feature
middleman-core-4.3.3 features/stylus.feature
middleman-core-4.3.2 features/stylus.feature
middleman-core-4.3.1 features/stylus.feature
middleman-core-4.3.0 features/stylus.feature
middleman-core-4.3.0.rc.4 features/stylus.feature
middleman-core-4.3.0.rc.3 features/stylus.feature
middleman-core-4.3.0.rc.2 features/stylus.feature
middleman-core-with-external-sources-watch-fix-4.1.10 features/stylus.feature
middleman-core-with-external-sources-watch-fix-4.1.0 features/stylus.feature
middleman-core-4.3.0.rc.1 features/stylus.feature
middleman-core-4.2.1 features/stylus.feature
middleman-core-4.2.0 features/stylus.feature