middleman/middleman-more/features/sass-assets-paths.feature
kematzy 3ea2241155 Added :sass_assets_path for external SASS repositories
Compass is great, but sometimes we need to have common framework code in one (global) location with local overrides in the app.

This addition adds built-in support for loading SASS/SCSS files from multiple locations external to the "source" directory and even the Middleman app root.

Example usage:

    # in config.rb

    set :sass_assets_path, [ "#{root}/assets/sass/", "~/.sass-repo/"]

Using symlinks or copying files to the Middleman project can get messy quickly.  This fix reduces some of those issues.
2012-07-17 09:21:46 -07:00

12 lines
656 B
Gherkin

Feature: Support SASS assets paths
In order to import common shared assets when writing Sass
Scenario: Importing assets from 'assets/stylesheets/' directory in app root
Given the Server is running at "sass-assets-path-app"
When I go to "/stylesheets/plain.css"
Then I should see "color: green;"
Then I should see "/* Works with shared SCSS assets from APPROOT/assets/stylesheets/_shared-asset.scss */"
Then I should see "/* Works with shared SASS assets from APPROOT/assets/stylesheets/_shared-asset.sass */"
Then I should see "font-size: 18px"
Then I should see "/* Works with shared SASS assets from external source directory */"