Skip to content

Add Flipper.instance writer method#309

Merged
jnunemaker merged 2 commits intomasterfrom
instance-writer
Nov 21, 2017
Merged

Add Flipper.instance writer method#309
jnunemaker merged 2 commits intomasterfrom
instance-writer

Conversation

@jnunemaker
Copy link
Copy Markdown
Collaborator

Tiny little doodad to update the Flipper.instance explicitly. Primarily useful for testing where you can just use the memory adapter like:

# in setup, before, or whatever your test framework calls it
Flipper.instance = Flipper.new(Flipper::Adapters::Memory.new)

@jnunemaker jnunemaker self-assigned this Nov 21, 2017
@jnunemaker jnunemaker merged commit b1de739 into master Nov 21, 2017
@jnunemaker jnunemaker deleted the instance-writer branch November 21, 2017 01:32
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