34 lines
No EOL
1.1 KiB
Gherkin
34 lines
No EOL
1.1 KiB
Gherkin
Feature: Sass Partials
|
|
Scenario: The preview server should update stylesheets when Sass partials change
|
|
Given the Server is running at "preview-app"
|
|
And the file "source/stylesheets/_partial.sass" has the contents
|
|
"""
|
|
body
|
|
font-size: 14px
|
|
"""
|
|
When I go to "/stylesheets/main.css"
|
|
Then I should see "font-size: 14px"
|
|
And the file "source/stylesheets/_partial.sass" has the contents
|
|
"""
|
|
body
|
|
font-size: 18px
|
|
"""
|
|
When I go to "/stylesheets/main.css"
|
|
Then I should see "font-size: 18px"
|
|
|
|
Scenario: The preview server should update stylesheets when Sprockets partials change
|
|
Given the Server is running at "preview-app"
|
|
And the file "source/stylesheets/_partial2.css.sass" has the contents
|
|
"""
|
|
body
|
|
font-size: 14px
|
|
"""
|
|
When I go to "/stylesheets/main2.css"
|
|
Then I should see "font-size: 14px"
|
|
And the file "source/stylesheets/_partial2.css.sass" has the contents
|
|
"""
|
|
body
|
|
font-size: 18px
|
|
"""
|
|
When I go to "/stylesheets/main2.css"
|
|
Then I should see "font-size: 18px" |