From 31877b7eaa4fe345e2cc7405c6c3fdb2e2c375e0 Mon Sep 17 00:00:00 2001 From: Andy Waite Date: Sat, 29 Nov 2025 00:40:32 -0500 Subject: [PATCH] Allow tests to run in random order --- .rspec | 1 + spec/rspec_formatter_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.rspec b/.rspec index b62b8e2..3f1dfa3 100644 --- a/.rspec +++ b/.rspec @@ -2,3 +2,4 @@ --color --require spec_helper --exclude-pattern **/fixtures/* +--order random diff --git a/spec/rspec_formatter_spec.rb b/spec/rspec_formatter_spec.rb index 010986b..b6381da 100644 --- a/spec/rspec_formatter_spec.rb +++ b/spec/rspec_formatter_spec.rb @@ -151,7 +151,7 @@ { "method" => "finish", "params" => {} }, ] - expect(events).to match(expected) + expect(events).to contain_exactly(*expected) end describe "RubyLsp::RSpec::RSpecFormatter notifications" do