Skip to content

Redefine endpoint? #15

@vfxdrummer

Description

@vfxdrummer

Hello -

Is there a way to redefine endpoints on subsequent calls to mimic?
i.e., in one test :
Mimic.mimic do
get('test').returning('first value')

next test :
get('test').returning('second value')

next test :
get('test').returning('some other value')

Basically, I want to be able to override / reconfigure arbitrary endpoints on a per-test basis.

Is this possible? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions