diff --git a/test/action_controller/serialization_test.rb b/test/action_controller/serialization_test.rb index d01ee6daa..7d840765b 100644 --- a/test/action_controller/serialization_test.rb +++ b/test/action_controller/serialization_test.rb @@ -47,12 +47,11 @@ def render_array_using_implicit_serializer_and_meta def render_array_using_implicit_serializer_and_links with_adapter ActiveModel::Serializer::Adapter::JsonApi do - @profiles = [ - Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' }) + Profile.new(name: 'Name 1', description: 'Description 1', comments: 'Comments 1') ] - render json: @profiles, links: { self: "http://example.com/api/profiles/1" } + render json: @profiles, links: { self: 'http://example.com/api/profiles/1' } end end