lib/test/unit/testcase.rb in test-unit-3.2.2 vs lib/test/unit/testcase.rb in test-unit-3.2.3

- old
+ new

@@ -228,10 +228,14 @@ @@test_orders = {} # Returns the current test order. This returns # +:alphabetic+ by default. def test_order - @@test_orders[self] || AVAILABLE_ORDERS.first + ancestors.each do |ancestor| + order = @@test_orders[ancestor] + return order if order + end + AVAILABLE_ORDERS.first end # Sets the current test order. # # Here are the available _order_: