Skip to content

Commit

Permalink
Merge pull request #819 from flippercloud/test-help-clear
Browse files Browse the repository at this point in the history
Ensure Rspec uses new memory adapter for each example
  • Loading branch information
bkeepers committed Jan 15, 2024
2 parents 8959098 + fa3f2c1 commit 35592a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/flipper/test_help.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ def flipper_reset
if defined?(RSpec) && RSpec.respond_to?(:configure)
RSpec.configure do |config|
config.include Flipper::TestHelp
config.before(:all) { flipper_configure }
config.before(:each) { flipper_reset }
config.before(:each) do
flipper_reset
flipper_configure
end
end
end

Expand Down

0 comments on commit 35592a7

Please sign in to comment.