File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -73,13 +73,14 @@ defmodule Ash.Test.ManageRelationshipTest do
7373 accept [ :required_attribute ]
7474 argument :parent_resource , :map , allow_nil?: false
7575 change manage_relationship ( :parent_resource , type: :direct_control )
76- change after_action ( fn changeset , result , context ->
77- if ! changeset . attributes [ :parent_resource_id ] do
78- raise "should have a parent_resource_id"
79- end
8076
81- { :ok , result }
82- end )
77+ change after_action ( fn changeset , result , context ->
78+ if ! changeset . attributes [ :parent_resource_id ] do
79+ raise "should have a parent_resource_id"
80+ end
81+
82+ { :ok , result }
83+ end )
8384 end
8485 end
8586
@@ -162,7 +163,7 @@ defmodule Ash.Test.ManageRelationshipTest do
162163 |> Ash.Changeset . for_create ( :create_with_parent , % {
163164 required_attribute: "string" ,
164165 parent_resource: % {
165- name: "Test Parent Resource" ,
166+ name: "Test Parent Resource"
166167 }
167168 } )
168169 |> Ash . create! ( )
You can’t perform that action at this time.
0 commit comments