File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -247,9 +247,9 @@ defmodule ExUnit.Assertions do
247
247
248
248
@ doc """
249
249
Asserts a message was or is going to be received. Unlike
250
- `assert_received`, it has a default timeout of 100 miliseconds .
250
+ `assert_received`, it has a default timeout of 100 milliseconds .
251
251
252
- The given `expected` argument must be a pattern.
252
+ The given `expected` argument has to be a pattern.
253
253
254
254
## Examples
255
255
@@ -263,17 +263,20 @@ defmodule ExUnit.Assertions do
263
263
264
264
assert_receive { :hello, _ }
265
265
266
+ x = 5
267
+ assert_receive { :count, ^x }
268
+
266
269
"""
267
270
defmacro assert_receive ( expected , timeout // 100 , message // nil ) do
268
271
do_assert_receive ( expected , timeout , message )
269
272
end
270
273
271
274
@ doc """
272
- Asserts a message was received and is in the current process mailbox.
273
- The given `expected` argument must be a match pattern.
274
-
275
+ Asserts a message was received and is in the current process' mailbox.
275
276
Timeout is set to 0, so there is no waiting time.
276
277
278
+ The given `expected` argument has to be a pattern.
279
+
277
280
## Examples
278
281
279
282
self <- :hello
You can’t perform that action at this time.
0 commit comments