lib/m/runners/minitest_5.rb in m-1.6.1 vs lib/m/runners/minitest_5.rb in m-1.6.2

- old
+ new

@@ -1,21 +1,19 @@ module M module Runners class Minitest5 < Base def suites - if Minitest.respond_to?(:seed) - Minitest.seed = (ENV["SEED"] || srand).to_i % 0xFFFF - end + Minitest.seed = (ENV["SEED"] || srand).to_i % 0xFFFF if Minitest.respond_to? :seed Minitest::Runnable.runnables end - def run(test_arguments) + def run test_arguments output = Minitest.run test_arguments ::Minitest.class_variable_get(:@@after_run).reverse_each(&:call) output end - def test_methods(suite_class) + def test_methods suite_class suite_class.runnable_methods end end end end