Class: Minitest::Suite::PartialArrayProxy
- Inherits:
-
Array
- Object
- Array
- Minitest::Suite::PartialArrayProxy
- Defined in:
- lib/minitest/suite.rb
Instance Method Summary collapse
Instance Method Details
#reject ⇒ Object
84 85 86 |
# File 'lib/minitest/suite.rb', line 84 def reject self.class.new(super) end |
#shuffle ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/minitest/suite.rb', line 71 def shuffle filtered = map { |test_class| Suite.registration_for(test_class) }.compact suites = Suite.order | (filtered.map(&:suite).uniq + [:__unsuitened]).shuffle suites.flat_map { |suite| if suite == :__unsuitened (self - filtered.map(&:test)).shuffle else filtered.select { |r| r.suite == suite }.map(&:test).shuffle end } end |