aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-07-03 14:23:42 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-07-03 14:28:28 -0700
commitada571bfcdbad669ae43a4dd18277ef227680a0b (patch)
treea9fa8b65552b06ac77d850bf440fc8bf1e69051c /activesupport/lib/active_support
parent089da2e54db54c021681af1a31aadc2c0e15c1e0 (diff)
downloadrails-ada571bfcdbad669ae43a4dd18277ef227680a0b.tar.gz
rails-ada571bfcdbad669ae43a4dd18277ef227680a0b.tar.bz2
rails-ada571bfcdbad669ae43a4dd18277ef227680a0b.zip
remove the runner method copied from minitest
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/testing/setup_and_teardown.rb27
1 files changed, 7 insertions, 20 deletions
diff --git a/activesupport/lib/active_support/testing/setup_and_teardown.rb b/activesupport/lib/active_support/testing/setup_and_teardown.rb
index 527fa555b7..ddb7396aa9 100644
--- a/activesupport/lib/active_support/testing/setup_and_teardown.rb
+++ b/activesupport/lib/active_support/testing/setup_and_teardown.rb
@@ -30,28 +30,15 @@ module ActiveSupport
end
end
- def run(runner)
- result = '.'
- begin
- run_callbacks :setup do
- result = super
- end
- rescue *PASSTHROUGH_EXCEPTIONS
- raise
- rescue Exception => e
- result = runner.puke(self.class, method_name, e)
- ensure
- begin
- run_callbacks :teardown
- rescue *PASSTHROUGH_EXCEPTIONS
- raise
- rescue Exception => e
- result = runner.puke(self.class, method_name, e)
- end
- end
- result
+ def before_setup
+ super
+ run_callbacks :setup
end
+ def after_teardown
+ run_callbacks :teardown
+ super
+ end
end
end
end