Skip to content

Flipper in Test Suites #551

Answered by bkeepers
eyefodder asked this question in Q&A
Aug 12, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @eyefodder, you'll need to override the default flipper instance.

config.before(:each) do
  Flipper.instance = Flipper.new(Flipper::Adapters::Memory.new)
  allow(Flipper).to_receive(:enabled?).and_return(true)
end

I'll work on an update to docs (or Flipper's behavior in tests) to make this more clear.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@jnunemaker
Comment options

Answer selected by bkeepers
Comment options

You must be logged in to vote
2 replies
@eyefodder
Comment options

@jnunemaker
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants