Skip to content

Commit 31877b7

Browse files
committed
Allow tests to run in random order
1 parent e7ff414 commit 31877b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
--color
33
--require spec_helper
44
--exclude-pattern **/fixtures/*
5+
--order random

spec/rspec_formatter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
{ "method" => "finish", "params" => {} },
152152
]
153153

154-
expect(events).to match(expected)
154+
expect(events).to contain_exactly(*expected)
155155
end
156156

157157
describe "RubyLsp::RSpec::RSpecFormatter notifications" do

0 commit comments

Comments
 (0)