Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 677 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | require 'page_cache' |
3 | |
4 | class PageCache |
5 | |
6 | cattr_accessor :deleted_pages |
7 | |
8 | def delete_file(path) |
9 | PageCache.deleted_pages << path |
10 | end |
11 | end |
12 | |
13 | class CacheTest < Test::Unit::TestCase |
14 | fixtures :page_caches |
15 | |
16 | def setup |
17 | PageCache.deleted_pages = [] |
18 | PageCache.public_path = '' |
19 | end |
20 | |
21 | # Replace this with your real tests. |
22 | def test_sweep_all |
23 | PageCache.sweep_all |
24 | |
25 | assert_equal ['/index.html', '/articles/2005/05/05/title'].sort, PageCache.deleted_pages.sort |
26 | end |
27 | |
28 | def test_sweep_by_pattern |
29 | PageCache.sweep('articles%') |
30 | |
31 | assert_equal ['/articles/2005/05/05/title'], PageCache.deleted_pages |
32 | end |
33 | |
34 | end |