Skip to content

Expected location in assert created methods #19

@lindyhopchris

Description

@lindyhopchris

Both the assertCreatedWithServerId and assertCreatedWithClientId expect the Location header to be present. However, if there is a resource that is not retrievable via its ID, then it would be legitimate to not have a Location header. The assertion therefore needs to accept null for the expected location.

This fits with the spec, that states that the Location header SHOULD be included... i.e. it is legitimate not to have the header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions