From 220bb5edb294962e738326dc5517b6f4752ef623 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 24 May 2012 10:24:36 -0700 Subject: [PATCH] add some sprockets update tests --- middleman-more/features/sprockets.feature | 22 ++++++++++++++++++++++ middleman-more/middleman-more.gemspec | 3 +-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/middleman-more/features/sprockets.feature b/middleman-more/features/sprockets.feature index d29b5088..43b8960f 100644 --- a/middleman-more/features/sprockets.feature +++ b/middleman-more/features/sprockets.feature @@ -35,6 +35,28 @@ Feature: Sprockets Given the Server is running at "sprockets-app2" When I go to "/stylesheets/sprockets_base2.css" Then I should see "hello" + + Scenario: Sprockets CSS require //require (updates) + Given the Server is running at "sprockets-app2" + When I go to "/stylesheets/sprockets_base1.css" + Then I should see "hello" + And the file "source/stylesheets/sprockets_sub.css.scss" has the contents + """ + hola { mundo: "hola"; } + """ + When I go to "/stylesheets/sprockets_base1.css" + Then I should see "hola" + + Scenario: Sprockets CSS require @import (updates) + Given the Server is running at "sprockets-app2" + When I go to "/stylesheets/sprockets_base2.css" + Then I should see "hello" + And the file "source/stylesheets/sprockets_sub.css.scss" has the contents + """ + hola { mundo: "hola"; } + """ + When I go to "/stylesheets/sprockets_base2.css" + Then I should see "hola" Scenario: Sprockets CSS require with custom :css_dir //require Given the Server is running at "sprockets-app" diff --git a/middleman-more/middleman-more.gemspec b/middleman-more/middleman-more.gemspec index 1ff77d48..55003da4 100644 --- a/middleman-more/middleman-more.gemspec +++ b/middleman-more/middleman-more.gemspec @@ -27,5 +27,4 @@ Gem::Specification.new do |s| s.add_dependency("sprockets", ["~> 2.1"]) s.add_dependency("sprockets-sass", ["~> 0.8.0"]) s.add_dependency("maruku", ["~> 0.6.0"]) -end - +end \ No newline at end of file