Class: Minitest::Runnable
- Inherits:
-
Object
- Object
- Minitest::Runnable
- Defined in:
- lib/maxitest/static_class_order.rb
Class Method Summary collapse
Class Method Details
.runnables ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/maxitest/static_class_order.rb', line 11 def runnables return runnables_without_static_order unless Maxitest.static_class_order # Minitest.__run uses Runnable.runnables.shuffle -> hack it runnables = runnables_without_static_order def runnables.shuffle self end # ugly hack to fight minitest 5.10 https://github.com/seattlerb/minitest/commit/478e3f9cfeb0a2f8cc4b029bbcbe7bb16648dd96 def runnables.reject(*args, &block) reject!(*args, &block) end runnables end |
.runnables_without_static_order ⇒ Object
9 |
# File 'lib/maxitest/static_class_order.rb', line 9 alias runnables_without_static_order runnables |