File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -130,31 +130,6 @@ defmodule Test.Acceptance.BelongsToRequiredTest do
130130
131131 describe "invalid_post" do
132132 @ describetag :attributes
133- test "create without an author_id in relationship" do
134- id = Ecto.UUID . generate ( )
135-
136- response =
137- Domain
138- |> post ( "/posts" , % {
139- data: % {
140- type: "post" ,
141- attributes: % {
142- id: id ,
143- name: "Invalid Post 1"
144- } ,
145- relationships: % {
146- author: % {
147- data: % { }
148- }
149- }
150- }
151- } )
152-
153- # response is a Plug.
154- assert response . status == 400
155-
156- assert Enum . any? ( response . resp_body [ "errors" ] , & ( & 1 [ "code" ] == "required" ) )
157- end
158133
159134 test "create without an author in relationship" do
160135 id = Ecto.UUID . generate ( )
You can’t perform that action at this time.
0 commit comments