Skip to content

Commit

Permalink
Merge pull request #154 from mblake/111-fix-destroy-on-generator
Browse files Browse the repository at this point in the history
removed empty_folder from FeaturesGenerator to prevent revokation of step
  • Loading branch information
aslakhellesoy committed Sep 11, 2011
2 parents 0535707 + f114bfa commit 61c1a44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/generators/cucumber/feature/feature_generator.rb
Expand Up @@ -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|
Expand All @@ -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.