Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 913 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | require 'page_cache' |
3 | |
4 | class PageCache |
5 | cattr_accessor :mock_file_deleter |
6 | def delete_file(path) |
7 | PageCache.mock_file_deleter.delete_file(path) |
8 | end |
9 | end |
10 | |
11 | context 'With the fixtures loaded' do |
12 | fixtures :page_caches |
13 | |
14 | setup do |
15 | @deleter = mock('fdeleter') |
16 | PageCache.mock_file_deleter = @deleter |
17 | end |
18 | |
19 | specify '#sweep_all catches_all the pages' do |
20 | @deleter.should_receive(:delete_file).once.with(%r{/index\.html$}) |
21 | @deleter.should_receive(:delete_file).once.with(%r{/articles/2005/05/05/title$}) |
22 | |
23 | PageCache.count.should == 2 |
24 | PageCache.sweep_all |
25 | PageCache.count.should == 0 |
26 | end |
27 | |
28 | specify '#sweep_by_pattern does the right thing' do |
29 | @deleter.should_receive(:delete_file).once.with(%r{/articles/2005/05/05/title$}) |
30 | |
31 | PageCache.count.should == 2 |
32 | PageCache.sweep('articles%') |
33 | PageCache.count.should == 1 |
34 | end |
35 | end |