Merge pull request #213 from bhollis/sass_partials

Preview server doesn't reload stylesheets when a Sass partial changes
This commit is contained in:
Thomas Reynolds 2011-12-27 00:41:49 -08:00
commit d416f2797d
3 changed files with 20 additions and 0 deletions

View 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"

View file

@ -0,0 +1,2 @@
body
font-size: 18px

View file

@ -0,0 +1 @@
@import partial.sass