Skip to content

Allow the creation of an instance of a serializer #101

@GavinJoyce

Description

@GavinJoyce

Testing serializers can be a little cumbersome as you have to call as_json(model, { ..}. It would be nice to be able to create an instance of a serializer, passing in a model and a context as this would allow something like:

expect(person_serializer.first_name).to eq("John O'Shea")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions