diff --git a/test/action_controller/json_api/linked_test.rb b/test/action_controller/json_api/linked_test.rb index 376bea20c..ba317e212 100644 --- a/test/action_controller/json_api/linked_test.rb +++ b/test/action_controller/json_api/linked_test.rb @@ -53,7 +53,7 @@ def render_resource_with_nested_include def render_resource_with_nested_has_many_include setup_post - render json: @post, include: [author: [:roles]], adapter: :json_api + render json: @post, include: 'author.roles', adapter: :json_api end def render_resource_with_missing_nested_has_many_include @@ -75,7 +75,7 @@ def render_collection_without_include def render_collection_with_include setup_post - render json: [@post], include: [:author, :comments], adapter: :json_api + render json: [@post], include: 'author, comments', adapter: :json_api end end