Skip to content

Added support for reactivation#10

Open
theconektd wants to merge 2 commits into
wycats:masterfrom
theconektd:reactivation
Open

Added support for reactivation#10
theconektd wants to merge 2 commits into
wycats:masterfrom
theconektd:reactivation

Conversation

@theconektd

Copy link
Copy Markdown
Contributor

I added an Artifice.reactivate method. It supports the same style as activate_with, but just mounts the last used endpoint.

It may seem hard to justify, but this is actually really useful for (ahem) "a special case" we're dealing with in one of our suites and I suspect it could be useful for others as well.

@theconektd

Copy link
Copy Markdown
Contributor Author

I've gone back and forth on this one and I think I still like it. At the end of the day, it's easy to dig your last endpoint out of Artifice and just bolt it back on, but this approach doesn't require the user to have any knowledge of the internals.

I'm wondering if there should be a Artifice.previously_activated? method. Thoughts?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant