Permalink
Browse files

Merge pull request #154 from mblake/111-fix-destroy-on-generator

removed empty_folder from FeaturesGenerator to prevent revokation of step
  • Loading branch information...
2 parents 0535707 + f114bfa commit 61c1a442cdb8b28e12c246aa35ca134fdfd056bd @aslakhellesoy aslakhellesoy committed Sep 11, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/generators/cucumber/feature/feature_generator.rb
@@ -13,7 +13,6 @@ def parse_fields
end
def generate
- empty_directory 'features/step_definitions'
template 'feature.erb', "features/manage_#{plural_name}.feature"
template 'steps.erb', "features/step_definitions/#{singular_name}_steps.rb"
gsub_file 'features/support/paths.rb', /'\/'/mi do |match|
@@ -25,4 +24,4 @@ def self.banner
"#{$0} cucumber:feature ModelName [field:type, field:type]"
end
end
-end
+end

0 comments on commit 61c1a44

Please sign in to comment.