Skip to content

Commit bb047d2

Browse files
committed
Docs: Update warning about assert/refute path with Live patch
We update the warning to an info about using `assert_path` and `refute_path` with live patches.
1 parent 48a29a3 commit bb047d2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

lib/phoenix_test.ex

+10-4
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,12 @@ defmodule PhoenixTest do
444444
Assert helper to verify current request path. Takes an optional `query_params`
445445
map.
446446
447-
> ### Limited live patch implementation {: .warning}
447+
> ### Note on Live Patch Implementation {: .info}
448448
>
449-
> The current `assert_path` implementation doesn't support live patches.
449+
> Capturing the current path in live patches relies on message passing and
450+
could, therefore, be subject to intermittent failures. Please open an issue if
451+
you see intermittent failures when using `assert_path` with live patches so we
452+
can improve the implementation.
450453
451454
## Examples
452455
@@ -473,9 +476,12 @@ defmodule PhoenixTest do
473476
Verifies current request path is NOT the one provided. Takes an optional
474477
`query_params` map for more specificity.
475478
476-
> ### Limited live patch implementation {: .warning}
479+
> ### Note on Live Patch Implementation {: .info}
477480
>
478-
> The current `refute_path` implementation doesn't support live patches.
481+
> Capturing the current path in live patches relies on message passing and
482+
could, therefore, be subject to intermittent failures. Please open an issue if
483+
you see intermittent failures when using `refute_path` with live patches so we
484+
can improve the implementation.
479485
480486
## Examples
481487

0 commit comments

Comments
 (0)