mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Failing test case showing preview server not reloading stylesheets when a Sass partial is changed.
This commit is contained in:
parent
7e86ed058f
commit
8ded1b86af
3 changed files with 20 additions and 0 deletions
17
features/sass_partials.feature
Normal file
17
features/sass_partials.feature
Normal file
|
@ -0,0 +1,17 @@
|
|||
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"
|
2
fixtures/preview-app/source/stylesheets/_partial.sass
Normal file
2
fixtures/preview-app/source/stylesheets/_partial.sass
Normal file
|
@ -0,0 +1,2 @@
|
|||
body
|
||||
font-size: 18px
|
1
fixtures/preview-app/source/stylesheets/main.css.sass
Normal file
1
fixtures/preview-app/source/stylesheets/main.css.sass
Normal file
|
@ -0,0 +1 @@
|
|||
@import partial.sass
|
Loading…
Reference in a new issue