Skip to content

Commit

Permalink
Merge pull request #4119 from nebulab/4110-flaky-feature-spec-detecte…
Browse files Browse the repository at this point in the history
…d-disable-perform-caching-in-dummy-app

Disable perform_caching in DummyApp
  • Loading branch information
spaghetticode authored Jul 1, 2021
2 parents b9938c3 + 8387c74 commit 6a3d4b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/lib/spree/testing_support/dummy_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ class Application < ::Rails::Application
config.cache_classes = true
config.action_controller.allow_forgery_protection = false
config.action_controller.default_protect_from_forgery = false
config.action_controller.perform_caching = true
config.action_mailer.perform_caching = false
config.i18n.fallbacks = true

# In the test environment, we use the `caching: true` RSpec metadata to
# enable caching on select specs. See
# core/lib/spree/testing_support/caching.rb. See also
# https://github.com/solidusio/solidus/issues/4110
config.action_controller.perform_caching = false

# Make debugging easier:
config.consider_all_requests_local = true
config.action_dispatch.show_exceptions = false
Expand Down

0 comments on commit 6a3d4b8

Please sign in to comment.