Rspec Randomization
Setting Kernel.srand config.seed in your Rspec config will cause calls to ruby methods such as rand, shuffle, and sample to return the same element every time for a given seed. More here.
Setting Kernel.srand config.seed in your Rspec config will cause calls to ruby methods such as rand, shuffle, and sample to return the same element every time for a given seed. More here.