From 00958c1b24c0bf975777849ac62c533db7ce2cd7 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Tue, 17 Nov 2009 13:47:29 -0800 Subject: [PATCH] Don't leave directories around after testing. --- features/command_line.feature | 1 + features/step_definitions/command_line_steps.rb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/features/command_line.feature b/features/command_line.feature index f6e6ae9e..03424ddd 100644 --- a/features/command_line.feature +++ b/features/command_line.feature @@ -199,6 +199,7 @@ Feature: Command Line And a png file assets/wide_grid.png is not created Scenario: Generate a compass configuration file + Given I should clean up the directory: config When I run: compass config config/compass.rb --sass-dir sass --css-dir assets/css Then a configuration file config/compass.rb is created And the following configuration properties are set in config/compass.rb: diff --git a/features/step_definitions/command_line_steps.rb b/features/step_definitions/command_line_steps.rb index 4f8e8854..c0c19f00 100644 --- a/features/step_definitions/command_line_steps.rb +++ b/features/step_definitions/command_line_steps.rb @@ -44,6 +44,10 @@ Given /^I'm in a newly created rails project: (.+)$/ do |project_name| end end +Given /^I should clean up the directory: (\w+)$/ do |directory| + @cleanup_directories << directory +end + # When Actions are performed When /^I create a project using: compass create ([^\s]+) ?(.+)?$/ do |dir, args| @cleanup_directories << dir