also test sprockets sass partials
This commit is contained in:
parent
d416f2797d
commit
b4fd352467
|
@ -15,3 +15,20 @@ Feature: Sass Partials
|
||||||
"""
|
"""
|
||||||
When I go to "/stylesheets/main.css"
|
When I go to "/stylesheets/main.css"
|
||||||
Then I should see "font-size: 18px"
|
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"
|
|
@ -0,0 +1,2 @@
|
||||||
|
body
|
||||||
|
font-size: 18px
|
1
fixtures/preview-app/source/stylesheets/main2.css.sass
Normal file
1
fixtures/preview-app/source/stylesheets/main2.css.sass
Normal file
|
@ -0,0 +1 @@
|
||||||
|
//= require "_partial2.css.sass"
|
Loading…
Reference in a new issue