Sha256: b6afb9582a2a45b250e01d7ae6d2d9756c534a550169c31fb4bb05c344d06908

Contents?: true

Size: 655 Bytes

Versions: 25

Compression:

Stored size: 655 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'rails'
require 'redis'

require_relative '../lib/rails-brotli-cache'

$redis = Redis.new
$rails_cache_store = if ENV['RAILS_CACHE_STORE'] == 'redis_cache_store'
  ActiveSupport::Cache::RedisCacheStore.new(redis: $redis)
elsif ENV['RAILS_CACHE_STORE'] == 'brotli_cache_store'
  RailsBrotliCache::Store.new(ActiveSupport::Cache::MemoryStore.new)
else
  ActiveSupport::Cache::MemoryStore.new
end

require_relative '../spec/dummy/config/environment'
ENV['RAILS_ROOT'] ||= "#{File.dirname(__FILE__)}../../../spec/dummy"

RSpec.configure do |config|
  config.before(:each) do
    Rails.cache.clear
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rails-brotli-cache-0.4.6 spec/spec_helper.rb
rails-brotli-cache-0.4.5 spec/spec_helper.rb
rails-brotli-cache-0.4.4 spec/spec_helper.rb
rails-brotli-cache-0.4.3 spec/spec_helper.rb
rails-brotli-cache-0.4.2 spec/spec_helper.rb
rails-brotli-cache-0.4.1 spec/spec_helper.rb
rails-brotli-cache-0.4.0 spec/spec_helper.rb
rails-brotli-cache-0.3.14 spec/spec_helper.rb
rails-brotli-cache-0.3.13 spec/spec_helper.rb
rails-brotli-cache-0.3.12 spec/spec_helper.rb
rails-brotli-cache-0.3.11 spec/spec_helper.rb
rails-brotli-cache-0.3.10 spec/spec_helper.rb
rails-brotli-cache-0.3.9 spec/spec_helper.rb
rails-brotli-cache-0.3.8 spec/spec_helper.rb
rails-brotli-cache-0.3.7 spec/spec_helper.rb
rails-brotli-cache-0.3.6 spec/spec_helper.rb
rails-brotli-cache-0.3.5 spec/spec_helper.rb
rails-brotli-cache-0.3.4 spec/spec_helper.rb
rails-brotli-cache-0.3.3 spec/spec_helper.rb
rails-brotli-cache-0.3.2 spec/spec_helper.rb