Skip to content

Commit

Permalink
Configure flipper before each rspec example
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jan 15, 2024
1 parent 8959098 commit fa3f2c1
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 fa3f2c1

Please sign in to comment.