Skip to content
This repository

Rails destroy cucumber:feature deletes the steps folder, even though it's not empty. #111

anlek opened this Issue March 21, 2011 · 4 comments

3 participants

Andrew Kalek Aslak Hellesøy mblake
Andrew Kalek
anlek commented March 21, 2011

Just wanted to let you know that I found a bug in the generator, where destroying the generator deletes the steps folder even though there are still files there.

rails g cucumber:feature account name:string 
       exist  features/step_definitions
      create  features/manage_accounts.feature
      create  features/step_definitions/account_steps.rb
        gsub  features/support/paths.rb
rails destroy cucumber:feature account                     
      remove  features/step_definitions
      remove  features/manage_accounts.feature
      remove  features/step_definitions/account_steps.rb

Please notice the first line in the destroy command: remove features/step_definitions

Aslak Hellesøy

Thanks. This is the sort of bug that will only get fixed if someone sends me a pull request.

Andrew Kalek
anlek commented March 21, 2011

Understood, I'll see if I can give it a fix, however really busy at the moment.

mblake commented July 06, 2011

I initiated a pull request for this issue. I removed the empty_folder creation in the features generator, it doesn't seem to cause any problems if the folder doesn't exist as the creation of the step definition on generation creates the whole chain of folders if they do not exist.

Aslak Hellesøy

Fixed in 1.0.3

Aslak Hellesøy aslakhellesoy closed this September 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.