Skip to content

Commit c54ba10

Browse files
committed
Update CONTRIBUTING.md
1 parent bcfe973 commit c54ba10

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,23 @@ An variable entry looks like this: `{ name: "bar", value: "nil", type: "NilClass
372372

373373
Please note that both `value` and `type` need to be strings.
374374

375+
- assert_threads_result(expected)
376+
377+
Passes if both conditions are true:
378+
379+
1. The number of expected pattern matches the number of threads.
380+
2. The expected patterns match the thread names in the given order.
381+
382+
Example:
383+
384+
```
385+
assert_threads_result(
386+
[
387+
/\.rb:\d:in `<main>'/,
388+
/\.rb:\d:in `block in foo'/
389+
]
390+
)
391+
```
375392

376393
## To Update README
377394

0 commit comments

Comments
 (0)