instance method
setup
Ruby on Rails 7.1.6
Since v3.0.20Signature
setup(*args, &block)
Add a callback, which runs before TestCase#setup.
Parameters
-
argsrest -
blockblock
Source
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 29
def setup(*args, &block)
set_callback(:setup, :before, *args, &block)
end
Defined in activesupport/lib/active_support/testing/setup_and_teardown.rb line 29
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Testing::SetupAndTeardown::ClassMethods