Sha256: df7c18e6102461f13f6f96d34e2a35fac7727ac1b4b8993f8b26bb68b125f9e1

Contents?: true

Size: 347 Bytes

Versions: 12

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  config.before do |spec|
    enabled = spec.metadata.key?(:request_cycle_cache) && spec.metadata[:request_cycle_cache] == true
    enabled ||= false
    DHS.config.request_cycle_cache_enabled = enabled
    DHS.config.request_cycle_cache = ActiveSupport::Cache::MemoryStore.new
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 spec/support/request_cycle_cache.rb
dhs-1.5.0 spec/support/request_cycle_cache.rb
dhs-1.4.2 spec/support/request_cycle_cache.rb
dhs-1.4.1 spec/support/request_cycle_cache.rb
dhs-1.4.0 spec/support/request_cycle_cache.rb
dhs-1.3.0 spec/support/request_cycle_cache.rb
dhs-1.2.0 spec/support/request_cycle_cache.rb
dhs-1.1.0 spec/support/request_cycle_cache.rb
dhs-1.0.3 spec/support/request_cycle_cache.rb
dhs-1.0.2 spec/support/request_cycle_cache.rb
dhs-1.0.1 spec/support/request_cycle_cache.rb
dhs-1.0.0 spec/support/request_cycle_cache.rb