Skip to content

Commit 526ab77

Browse files
committed
fix(docs): correct before_all + isolator instructions
1 parent 1422312 commit 526ab77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/recipes/before_all.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ If you're using DatabaseCleaner, make sure it rolls back the database between te
208208

209209
TestProf recognizes Isolator out-of-the-box and make it ignore `before_all` transactions.
210210

211-
You just need to make sure that you require `isolator` after TestProf helpers or require the patch explicitly:
211+
You just need to make sure that you require `isolator` before loading `before_all` (or `let_it_be`).
212+
213+
Alternatively, you can load the patch explicitly:
212214

213215
```ruby
214216
# after loading before_all or/and let_it_be

0 commit comments

Comments
 (0)