aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/testing
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-10-08 17:41:40 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-10-08 17:57:58 +0900
commit46784703e273c9f7f2a278dad990b5348488264d (patch)
tree4263e30994def774f09e89fe57958dc6b6c7f75c /railties/lib/rails/generators/testing
parenteaa0cb7924d5ffd0de04492a7198e0d79088aaae (diff)
downloadrails-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.rb3
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