The #empty_directory method from Thor can only be executed when running "rails generate" and not "rails destroy", or it ends up cleaning up the whole spec/acceptance directory.
Shame I found this bug before committing some changes. Anyway, it's fixed and spec'ed now.
The #empty_directory method from Thor can only be executed when running "rails generate" and not "rails destroy", or it ends up cleaning up the whole spec/acceptance directory.
Shame I found this bug before committing some changes. Anyway, it's fixed and spec'ed now.