提交 ada571bf 编写于 作者: A Aaron Patterson

remove the runner method copied from minitest

上级 089da2e5
......@@ -30,28 +30,15 @@ def teardown(*args, &block)
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册