Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 13
- Log:
Initial import of Typo 2.6.0 sources from a downloaded Tarball.
Typo is a Ruby On Rails based blog engine.
- Author:
- adh
- Date:
- Sat Jul 22 22:25:02 +0100 2006
- Size:
- 689 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 |