Perform in-place shuffle

This commit is contained in:
Michael Miller 2019-03-23 19:58:45 -06:00
parent 7b1b65f553
commit bc8b608789

View file

@ -43,7 +43,7 @@ module Spectator
# if specified by the configuration.
private def example_order
if @config.randomize?
@suite.to_a.shuffle(@config.random)
@suite.to_a.shuffle!(@config.random)
else
@suite.each
end