aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-10-08 18:03:24 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-10-08 18:03:24 -0600
commit64476e9194388f774a4dd2fa790e69bbd6b6a128 (patch)
treec26521012805b35f3100447a6784e707a0b05824
parent1b6fcae948b162efbd17f08ca563ff05742bf01b (diff)
parent46784703e273c9f7f2a278dad990b5348488264d (diff)
downloadrails-64476e9194388f774a4dd2fa790e69bbd6b6a128.tar.gz
rails-64476e9194388f774a4dd2fa790e69bbd6b6a128.tar.bz2
rails-64476e9194388f774a4dd2fa790e69bbd6b6a128.zip
Merge pull request #21912 from y-yagi/move_prepare_destination_to_public
change `prepare_destination` to public API [ci skip]
-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