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.
Prevents the generator from emptying spec/acceptance when running 'ra…
…ils destroy steak:spec'.
Good one! It's merged now. Thanks a lot