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

TestHelp: Fix setup for RSpec, clear adapter before each test #827

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

bkeepers
Copy link
Collaborator

This should fix #821 and fix #822.

I can't get a failing RSpec spec in this repo right now, but will work on refactoring our test suite to get one similar to test_rails/system/test_help_test.rb for rspec.

@danielmorrison @norman @rnestler @davidwessman @fcheung can you test this branch and confirm that it works for you?

cc #808

@danielmorrison
Copy link
Contributor

Works for me! :shipit:

@davidwessman
Copy link

Not using RSpec, just minitest

@bkeepers
Copy link
Collaborator Author

Not using RSpec, just minitest

Sorry about that. I just CC'd everyone from #808

Copy link

@rnestler rnestler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me 🙂

Edit: And slightly improves performance in our specs (2.5% less time) compared to setting FLIPPER_TEST_HELP to 'false'.

@norman
Copy link

norman commented Jan 18, 2024

Sorry, still fails for me with the exact same output as in #822. Again, if you think your code is working as it should, I have no problem adjusting our usage. If the Flipper state is being wiped after each example we probably don't need the around block any more anyway.

@fcheung
Copy link

fcheung commented Jan 18, 2024

Works for me (using rspec) - thanks for a quick fix

@bkeepers bkeepers merged commit e947540 into main Jan 19, 2024
72 checks passed
@bkeepers bkeepers deleted the test-help-fixes branch January 19, 2024 12:01
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.

Feature flag not being enabled in RSpec specs on 1.2.1 RSpec/Rails Issues with 1.2.1
6 participants