Sha256: ef950d48680f24c320715f98bf3320ab03c9c762074b8fa540552d7ab033d855

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

RSpec.configure do |config|
  config.around(:each, enable_caching: true) do |example|
    ActionController::Base.perform_caching = true
    old_cache_store = ActionController::Base.cache_store
    ActionController::Base.cache_store = :memory_store

    example.run

    ActionController::Base.cache_store = old_cache_store
    ActionController::Base.perform_caching = false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
high_voltage-2.0.0 spec/support/caching.rb
high_voltage-1.2.4 spec/support/caching.rb