lib/micron/test_case.rb in micron-0.5.0 vs lib/micron/test_case.rb in micron-0.5.1
- old
+ new
@@ -7,15 +7,24 @@
class TestCase
include LifecycleHooks
include Assertions
+ # Run before all test methods in the class
+ def self.before_class
+ end
+
+ # Run after all test methods in the class
+ def self.after_class
+ end
+
+ # Run before each test method
def setup
end
+ # Run after each test method
def teardown
end
-
# retrieve all loaded subclasses of this class
#
# @return [Array<Class>] List of subclasses
def self.subclasses