Skip to content

Commit 6a74444

Browse files
committed
Detail config options needed for random spec order
1 parent 804c97e commit 6a74444

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ For a maintainable, predictable test suite, one spec should not set up data (e.g
6969

7070
The specs run in a random order each time the test suite is run. This helps prevent the introduction of run order and test data dependencies between tests, which are best avoided.
7171

72-
Random test order configuration how-to:
73-
- [spec/spec_helper.rb](spec/spec_helper.rb)
72+
Random order test runs are configured using the `config.order = :random` and `Kernel.srand config.seed` options in [spec/spec_helper.rb](spec/spec_helper.rb).
7473

7574

7675
# Testing Rake Tasks with RSpec

0 commit comments

Comments
 (0)