Skip to content

Commit

Permalink
only run filesystem cleanup on generator features
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Nov 24, 2009
1 parent 945d92f commit 6846976
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions features/generator/generators.feature
@@ -1,3 +1,4 @@
@gen
Feature: allow pickle to generate steps
In order to get going with pickle
As a dev
Expand Down
4 changes: 2 additions & 2 deletions features/step_definitions/generator_steps.rb
@@ -1,8 +1,8 @@
Before do
Before('@gen') do
`mv #{Rails.root}/features/ #{Rails.root}/features.orig/ > /dev/null 2>&1`
end

After do
After('@gen') do
`rm -rf #{Rails.root}/features`
`mv #{Rails.root}/features.orig/ #{Rails.root}/features/ > /dev/null 2>&1`
end
Expand Down

0 comments on commit 6846976

Please sign in to comment.