diff options
author | Pablo Herrero <pablodherrero@gmail.com> | 2013-03-31 20:24:01 -0300 |
---|---|---|
committer | Pablo Herrero <pablodherrero@gmail.com> | 2013-03-31 20:46:16 -0300 |
commit | 57f71c28bffe3019d58281b16a31d167289ecfa7 (patch) | |
tree | c980bd0aaafd27f5a67a5bbe84df8451417179ff /railties/lib/rails/generators/testing/setup_and_teardown.rb | |
parent | 0a16cf19c2e2a2ba5cdb6ca849b60751f6cb52ed (diff) | |
download | rails-57f71c28bffe3019d58281b16a31d167289ecfa7.tar.gz rails-57f71c28bffe3019d58281b16a31d167289ecfa7.tar.bz2 rails-57f71c28bffe3019d58281b16a31d167289ecfa7.zip |
Break down Rails::Generator::TestCase into modules
Diffstat (limited to 'railties/lib/rails/generators/testing/setup_and_teardown.rb')
-rw-r--r-- | railties/lib/rails/generators/testing/setup_and_teardown.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/testing/setup_and_teardown.rb b/railties/lib/rails/generators/testing/setup_and_teardown.rb new file mode 100644 index 0000000000..0eb163eab7 --- /dev/null +++ b/railties/lib/rails/generators/testing/setup_and_teardown.rb @@ -0,0 +1,22 @@ +module Rails + module Generators + module Testing + + module SetupAndTeardown + + def setup # :nodoc: + destination_root_is_set? + ensure_current_path + super + end + + def teardown # :nodoc: + ensure_current_path + super + end + + end + + end + end +end |