Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Rspec uses new memory adapter for each example #819

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

bkeepers
Copy link
Collaborator

As mentioned in #808 (comment), the current RSpec integration does not clear the state of the adapter between specs. This is being obscured in our test suite at the moment because of how we manually clear Flipper.configuration = nil.

For now the fix is just to reconfigure Flipper before each example, which will create a new Memory adapter for each test (which is what it does with Rails+minitest).

@bkeepers bkeepers merged commit 35592a7 into main Jan 15, 2024
72 checks passed
@bkeepers bkeepers deleted the test-help-clear branch January 15, 2024 18:15
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