Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 700 Bytes
1 | require "#{File.dirname(__FILE__)}/spec_setup" |
2 | require 'rack/cache/request' |
3 | |
4 | describe 'Rack::Cache::Request' do |
5 | it 'is marked as no_cache when the Cache-Control header includes the no-cache directive' do |
6 | request = Rack::Cache::Request.new('HTTP_CACHE_CONTROL' => 'public, no-cache') |
7 | assert request.no_cache? |
8 | end |
9 | |
10 | it 'is marked as no_cache when request should not be loaded from cache' do |
11 | request = Rack::Cache::Request.new('HTTP_PRAGMA' => 'no-cache') |
12 | assert request.no_cache? |
13 | end |
14 | |
15 | it 'is not marked as no_cache when neither no-cache directive is specified' do |
16 | request = Rack::Cache::Request.new('HTTP_CACHE_CONTROL' => 'public') |
17 | assert !request.no_cache? |
18 | end |
19 | end |