module ActiveSupport::Testing::SetupAndTeardown::ClassMethods
Общедоступные методы экземпляра
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 29 def setup(*args, &block) set_callback(:setup, :before, *args, &block) end
Добавляет обратный вызов, который выполняется перед TestCase#setup.
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 34 def teardown(*args, &block) set_callback(:teardown, :after, *args, &block) end
Добавляет обратный вызов, который выполняется после TestCase#teardown.
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.