Skip to content

Commit

Permalink
Update capybara.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
mbajur authored Dec 22, 2024
1 parent d87b53e commit b0848c8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,17 @@
include Devise::Test::IntegrationHelpers
driven_by Capybara.javascript_driver
end

config.around(:each, type: :system) do |example|
caching = ActionController::Base.perform_caching
cache_store = Rails.application.config.cache_store

Rails.application.config.cache_store = :mem_cache_store
ActionController::Base.perform_caching = true

example.run

Rails.application.config.cache_store = cache_store
ActionController::Base.perform_caching = caching
end
end

0 comments on commit b0848c8

Please sign in to comment.