Sha256: 886d9cc48d9ba871a1df72ed4f5d0e869e0ec21e968a5b44be3aede1c1d157fa

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 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::Unit.runner.after_test(instance.class, instance.__name__)
    end

    def before_setup
      AroundTestHooks.before_test(self)
      super
    end

    def after_teardown
      super
      AroundTestHooks.after_test(self)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest-reporters-0.14.4 lib/minitest/around_test_hooks.rb
minitest-reporters-0.14.3 lib/minitest/around_test_hooks.rb