Sha256: cd8e67dfc0e73c6ac3ca9017f550677f05a12731359f85582620ebb03ac7732f
Contents?: true
Size: 700 Bytes
Versions: 31
Compression:
Stored size: 700 Bytes
Contents
require "#{File.dirname(__FILE__)}/spec_setup" require 'rack/cache/request' describe 'Rack::Cache::Request' do it 'is marked as no_cache when the Cache-Control header includes the no-cache directive' do request = Rack::Cache::Request.new('HTTP_CACHE_CONTROL' => 'public, no-cache') assert request.no_cache? end it 'is marked as no_cache when request should not be loaded from cache' do request = Rack::Cache::Request.new('HTTP_PRAGMA' => 'no-cache') assert request.no_cache? end it 'is not marked as no_cache when neither no-cache directive is specified' do request = Rack::Cache::Request.new('HTTP_CACHE_CONTROL' => 'public') assert !request.no_cache? end end
Version data entries
31 entries across 31 versions & 6 rubygems