Don't leave directories around after testing.

This commit is contained in:
Chris Eppstein 2009-11-17 13:47:29 -08:00
parent bd422403bd
commit 00958c1b24
2 changed files with 5 additions and 0 deletions

View File

@ -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:

View File

@ -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