Closed andyw8 closed 1 year ago
The following methods have a note that they are "These are meant for library writers, NOT for regular test authors."
after_setup
after_teardown
before_setup
before_teardown
https://ruby-doc.org/stdlib-3.1.2/libdoc/minitest/rdoc/Minitest/Test/LifecycleHooks.html
I suspect people may incorrectly use these because are similarly named to the before and after hooks in RSpec.
before
after
(I think this would be a helpful addition to rubocop-minitest).
The following methods have a note that they are "These are meant for library writers, NOT for regular test authors."
after_setup
after_teardown
before_setup
before_teardown
https://ruby-doc.org/stdlib-3.1.2/libdoc/minitest/rdoc/Minitest/Test/LifecycleHooks.html
I suspect people may incorrectly use these because are similarly named to the
before
andafter
hooks in RSpec.(I think this would be a helpful addition to rubocop-minitest).