aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-06-19 14:27:52 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-06-19 14:41:31 -0700
commit7896f35be37ab5ee8961a384f503137cfb154df0 (patch)
tree8412b743e92496c6769407e6d17b995635d61ba2 /railties/lib
parenta6fd462a8019f0be512bcba7ce5b9f9e482c7f8e (diff)
downloadrails-7896f35be37ab5ee8961a384f503137cfb154df0.tar.gz
rails-7896f35be37ab5ee8961a384f503137cfb154df0.tar.bz2
rails-7896f35be37ab5ee8961a384f503137cfb154df0.zip
use system tmpdir rather than our own
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/test_case.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/test_case.rb b/railties/lib/rails/generators/test_case.rb
index ff9cf0087e..2ff340755a 100644
--- a/railties/lib/rails/generators/test_case.rb
+++ b/railties/lib/rails/generators/test_case.rb
@@ -37,8 +37,16 @@ module Rails
self.current_path = File.expand_path(Dir.pwd)
self.default_arguments = []
- setup :destination_root_is_set?, :ensure_current_path
- teardown :ensure_current_path
+ def setup
+ destination_root_is_set?
+ ensure_current_path
+ super
+ end
+
+ def teardown
+ ensure_current_path
+ super
+ end
# Sets which generator should be tested:
#