diff --git a/features/sass_partials.feature b/features/sass_partials.feature new file mode 100644 index 00000000..c3fcf0b0 --- /dev/null +++ b/features/sass_partials.feature @@ -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" \ No newline at end of file diff --git a/fixtures/preview-app/source/stylesheets/_partial.sass b/fixtures/preview-app/source/stylesheets/_partial.sass new file mode 100644 index 00000000..3b0e67db --- /dev/null +++ b/fixtures/preview-app/source/stylesheets/_partial.sass @@ -0,0 +1,2 @@ +body + font-size: 18px \ No newline at end of file diff --git a/fixtures/preview-app/source/stylesheets/main.css.sass b/fixtures/preview-app/source/stylesheets/main.css.sass new file mode 100644 index 00000000..b7c61042 --- /dev/null +++ b/fixtures/preview-app/source/stylesheets/main.css.sass @@ -0,0 +1 @@ +@import partial.sass \ No newline at end of file