Sha256: 780abdcf05e08554f0c4242503c88d07c811461b5a36b1b2f501e80509343b6d

Contents?: true

Size: 1.37 KB

Versions: 6

Compression:

Stored size: 1.37 KB

Contents

Feature: Sass partials should work with Sprockets
  Confirm that changing assets will be reflected in a files output, even if it is included as a partial.

  Background:
    Given a fixture app "base-app"
    And a file named "config.rb" with:
      """
      activate :sprockets
      """
    And a file named "source/stylesheets/_partial.scss" with:
      """
      body { color: red; }
      """

  Scenario: The stylesheet shows updated content when Sprockets partials change
    Given a file named "source/stylesheets/main.css.scss" with:
      """
      @import "partial";
      """
    And the Server is running

    When I go to "/stylesheets/main.css"
    Then I should see "color: red;"

    And the file "source/stylesheets/_partial.scss" content is changed to:
      """
      body { color: blue; }
      """

    When I go to "/stylesheets/main.css"
    Then I should see "color: blue;"

  Scenario: The stylesheet shows updated content when an imported partial changes
    Given a file named "source/stylesheets/main.css.scss" with:
      """
      //= require _partial
      """
    And the Server is running

    When I go to "/stylesheets/main.css"
    Then I should see "color: red;"

    And the file "source/stylesheets/_partial.scss" content is changed to:
      """
      body { color: blue; }
      """

    When I go to "/stylesheets/main.css"
    Then I should see "color: blue;"

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-sprockets-4.1.1/features/test_cases/sass_partials.feature
middleman-sprockets-4.1.1 features/test_cases/sass_partials.feature
middleman-sprockets-4.1.0 features/test_cases/sass_partials.feature
middleman-sprockets-4.0.0 features/test_cases/sass_partials.feature
middleman-sprockets-4.0.0.rc.3 features/test_cases/sass_partials.feature
middleman-sprockets-4.0.0.rc.2 features/test_cases/sass_partials.feature