test(flipper): reset flipper flags before each test
This commit is contained in:
parent
8eb42baba5
commit
155c71b169
1 changed files with 4 additions and 0 deletions
|
@ -120,6 +120,10 @@ RSpec.configure do |config|
|
|||
end
|
||||
end
|
||||
|
||||
config.before(:each, type: Proc.new { |type| type != :system }) do
|
||||
Flipper.instance = Flipper.new(Flipper::Adapters::Memory.new)
|
||||
end
|
||||
|
||||
config.include Shoulda::Matchers::ActiveRecord, type: :model
|
||||
config.include Shoulda::Matchers::ActiveModel, type: :model
|
||||
config.include Devise::Test::ControllerHelpers, type: :controller
|
||||
|
|
Loading…
Reference in a new issue