Skip to content

Allow the creation of an instance of a serializer #101

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")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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