From fa3f2c14251199bce4138fcfd904e60e2aa9f8b8 Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Mon, 15 Jan 2024 10:00:26 -0500 Subject: [PATCH] Configure flipper before each rspec example --- lib/flipper/test_help.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/flipper/test_help.rb b/lib/flipper/test_help.rb index ffa68f242..14a7e7251 100644 --- a/lib/flipper/test_help.rb +++ b/lib/flipper/test_help.rb @@ -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