diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-10-08 17:41:40 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-10-08 17:57:58 +0900 |
commit | 46784703e273c9f7f2a278dad990b5348488264d (patch) | |
tree | 4263e30994def774f09e89fe57958dc6b6c7f75c /railties/lib/rails/generators/testing | |
parent | eaa0cb7924d5ffd0de04492a7198e0d79088aaae (diff) | |
download | rails-46784703e273c9f7f2a278dad990b5348488264d.tar.gz rails-46784703e273c9f7f2a278dad990b5348488264d.tar.bz2 rails-46784703e273c9f7f2a278dad990b5348488264d.zip |
change `prepare_destination` to public API [ci skip]
`prepare_destination` has been used in the template file for the generator,
I think it should be a public API
ref: https://github.com/rails/rails/blob/master/railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb#L8
Diffstat (limited to 'railties/lib/rails/generators/testing')
-rw-r--r-- | railties/lib/rails/generators/testing/behaviour.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/testing/behaviour.rb b/railties/lib/rails/generators/testing/behaviour.rb index c9700e1cd7..94b5e52224 100644 --- a/railties/lib/rails/generators/testing/behaviour.rb +++ b/railties/lib/rails/generators/testing/behaviour.rb @@ -92,7 +92,8 @@ module Rails cd current_path end - def prepare_destination # :nodoc: + # Clears all files and directories in destination. + def prepare_destination rm_rf(destination_root) mkdir_p(destination_root) end |