File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -408,8 +408,8 @@ defmodule AshJsonApi.Test do
408
408
has the same value in the error.
409
409
410
410
## Example
411
-
412
- ```elixr
411
+
412
+ ```elixir
413
413
Domain
414
414
|> delete("/posts/1", status: 404)
415
415
|> assert_has_error(%{
@@ -438,6 +438,7 @@ defmodule AshJsonApi.Test do
438
438
439
439
## Example
440
440
441
+ ```elixir
441
442
Domain
442
443
|> get("/posts/\# {post.id}/?include=author", status: 200)
443
444
|> assert_has_matching_include(fn
@@ -447,6 +448,7 @@ defmodule AshJsonApi.Test do
447
448
_ ->
448
449
false
449
450
end)
451
+ ```
450
452
"""
451
453
defmacro assert_has_matching_include ( conn , function ) do
452
454
quote do
@@ -466,6 +468,7 @@ defmodule AshJsonApi.Test do
466
468
467
469
## Example
468
470
471
+ ```elixir
469
472
Domain
470
473
|> get("/posts/\# {post.id}/?include=author", status: 200)
471
474
|> refute_has_matching_include(fn
@@ -475,6 +478,7 @@ defmodule AshJsonApi.Test do
475
478
_ ->
476
479
false
477
480
end)
481
+ ```
478
482
"""
479
483
defmacro refute_has_matching_include ( conn , function ) do
480
484
quote do
You can’t perform that action at this time.
0 commit comments