2011-12-27 21:09:51 -05:00
|
|
|
Feature: Sass Updates and Partials
|
|
|
|
Scenario: The preview server should update stylesheets when Sass changes
|
2013-05-08 14:37:55 -04:00
|
|
|
Given the Server is running at "more-preview-app"
|
2011-12-27 21:09:51 -05:00
|
|
|
And the file "source/stylesheets/plain.css.sass" has the contents
|
|
|
|
"""
|
|
|
|
red
|
|
|
|
color: red
|
|
|
|
"""
|
|
|
|
When I go to "/stylesheets/plain.css"
|
|
|
|
Then I should see "color: red;"
|
|
|
|
And the file "source/stylesheets/plain.css.sass" has the contents
|
|
|
|
"""
|
|
|
|
red
|
|
|
|
color: blue
|
|
|
|
"""
|
|
|
|
When I go to "/stylesheets/plain.css"
|
|
|
|
Then I should see "color: blue;"
|
|
|
|
|
2011-12-26 19:18:05 -05:00
|
|
|
Scenario: The preview server should update stylesheets when Sass partials change
|
2013-05-08 14:37:55 -04:00
|
|
|
Given the Server is running at "more-preview-app"
|
2011-12-27 21:09:51 -05:00
|
|
|
And the file "source/stylesheets/main.css.sass" has the contents
|
|
|
|
"""
|
|
|
|
@import partial.sass
|
|
|
|
|
|
|
|
red
|
|
|
|
color: red
|
|
|
|
"""
|
2011-12-26 19:18:05 -05:00
|
|
|
And the file "source/stylesheets/_partial.sass" has the contents
|
|
|
|
"""
|
|
|
|
body
|
|
|
|
font-size: 14px
|
|
|
|
"""
|
|
|
|
When I go to "/stylesheets/main.css"
|
2011-12-27 21:09:51 -05:00
|
|
|
Then I should see "color: red;"
|
|
|
|
And I should see "font-size: 14px;"
|
|
|
|
And the file "source/stylesheets/main.css.sass" has the contents
|
|
|
|
"""
|
|
|
|
@import partial.sass
|
|
|
|
|
|
|
|
red
|
|
|
|
color: blue
|
|
|
|
"""
|
2011-12-26 19:18:05 -05:00
|
|
|
And the file "source/stylesheets/_partial.sass" has the contents
|
|
|
|
"""
|
|
|
|
body
|
|
|
|
font-size: 18px
|
|
|
|
"""
|
|
|
|
When I go to "/stylesheets/main.css"
|
2011-12-27 21:09:51 -05:00
|
|
|
Then I should see "color: blue;"
|
|
|
|
And I should see "font-size: 18px"
|
2012-03-01 00:58:01 -05:00
|
|
|
|
|
|
|
Scenario: Sass partials should work when building
|
2013-05-08 14:37:55 -04:00
|
|
|
Given a successfully built app at "more-preview-app"
|
2012-03-01 00:58:01 -05:00
|
|
|
Then the file "build/stylesheets/main.css" should contain "font-size: 18px"
|