mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
4fe0732713
* Use "Given" instead of "And" as first scenario step * Remove unnecessary step The following step already invokes this step * Remove setup in feature that doesn't do anything As this referenced "i18n-test-app", but later we run "i18n-mixed-sources", these steps weren't doing anything. * Avoid referencing the same fixture twice The step "the Server is running at" invokes the "a fixture app" step, followed by "the Server is running" step.
40 lines
1 KiB
Gherkin
40 lines
1 KiB
Gherkin
Feature: Sass/SCSS support in Slim
|
|
In order to test support of the Slim sass and scss filters
|
|
|
|
Scenario: Sass filter in Slim works
|
|
Given a fixture app "sass-in-slim-app"
|
|
And a file named "config.rb" with:
|
|
"""
|
|
activate :directory_indexes
|
|
"""
|
|
And a file named "source/sass_filter.html.slim" with:
|
|
"""
|
|
sass:
|
|
.sass
|
|
margin: 0
|
|
"""
|
|
Given the Server is running
|
|
When I go to "/sass_filter/"
|
|
Then I should see "text/css"
|
|
Then I should see ".sass"
|
|
Then I should see "margin:0"
|
|
|
|
|
|
Scenario: SCSS filter in Slim works
|
|
Given a fixture app "sass-in-slim-app"
|
|
And a file named "config.rb" with:
|
|
"""
|
|
activate :directory_indexes
|
|
"""
|
|
And a file named "source/scss_filter.html.slim" with:
|
|
"""
|
|
scss:
|
|
.scss {
|
|
margin: 0;
|
|
}
|
|
"""
|
|
Given the Server is running
|
|
When I go to "/scss_filter/"
|
|
Then I should see "text/css"
|
|
Then I should see ".scss"
|
|
Then I should see "margin:0"
|