Merge branch 'sh-disable-flipper-midddlware-tests' into 'master'

Disable Flipper memoizer in tests to avoid transient failures

Closes #34278

See merge request !12656
This commit is contained in:
Rémy Coutable 2017-07-05 16:42:08 +00:00
commit 11e03bf49c

View file

@ -1,4 +1,6 @@
require 'flipper/middleware/memoizer'
Rails.application.config.middleware.use Flipper::Middleware::Memoizer,
lambda { Feature.flipper }
unless Rails.env.test?
Rails.application.config.middleware.use Flipper::Middleware::Memoizer,
lambda { Feature.flipper }
end