Sha256: abae14a331460d70d10c5241032c1cf3054e088e2c8ffbf85a27ad2555230689
Contents?: true
Size: 611 Bytes
Versions: 8
Compression:
Stored size: 611 Bytes
Contents
module MiniTest module AroundTestHooks def self.before_test(instance) MiniTest::Unit.runner.before_test(instance.class, instance.__name__) end def self.after_test(instance) # MiniTest < 4.1.0 sends #record after all teardown hooks, so don't call # #after_test here. if MiniTest::Unit::VERSION > "4.1.0" MiniTest::Unit.runner.after_test(instance.class, instance.__name__) end end def before_setup AroundTestHooks.before_test(self) super end def after_teardown super AroundTestHooks.after_test(self) end end end
Version data entries
8 entries across 8 versions & 1 rubygems