From 8ded1b86afc033792dab1ef4891766c8a4214a4f Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Mon, 26 Dec 2011 16:18:05 -0800 Subject: [PATCH] Failing test case showing preview server not reloading stylesheets when a Sass partial is changed. --- features/sass_partials.feature | 17 +++++++++++++++++ .../source/stylesheets/_partial.sass | 2 ++ .../source/stylesheets/main.css.sass | 1 + 3 files changed, 20 insertions(+) create mode 100644 features/sass_partials.feature create mode 100644 fixtures/preview-app/source/stylesheets/_partial.sass create mode 100644 fixtures/preview-app/source/stylesheets/main.css.sass 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