From 633986586b304a39340813e55ea514c11a75d886 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Sat, 6 Nov 2021 12:57:02 +0000 Subject: [PATCH] Adds rspec.config randomize spec order --- spec/base_spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/base_spec_helper.rb b/spec/base_spec_helper.rb index 890561b4d64..b48dc1b6046 100644 --- a/spec/base_spec_helper.rb +++ b/spec/base_spec_helper.rb @@ -65,6 +65,10 @@ # Force colored output, whether or not the output is a TTY config.color_mode = :on + # Configures specs to run random but deterministic order + config.order = :random + Kernel.srand config.seed + # Force use of expect (over should) config.expect_with :rspec do |expectations| expectations.syntax = :expect