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:
- 1271 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class CategoryTest < Test::Unit::TestCase |
4 | fixtures :contents, :categories, :categorizations, :blogs |
5 | |
6 | def setup |
7 | @category = Category.find(1) |
8 | end |
9 | |
10 | def test_truth |
11 | assert_kind_of Category, @category |
12 | end |
13 | |
14 | def test_find_all_with_article_counters |
15 | c = Category.find_all_with_article_counters |
16 | |
17 | assert_equal categories(:software), c[0] |
18 | assert_equal categories(:hardware), c[1] |
19 | assert_equal categories(:personal), c[2] |
20 | |
21 | assert_equal 1, c[0].article_counter |
22 | assert_equal 1, c[1].article_counter |
23 | assert_equal 3, c[2].article_counter |
24 | end |
25 | |
26 | def test_reorder |
27 | assert_equal categories(:software), Category.find(:first, :order => :position) |
28 | Category.reorder([categories(:personal).id, categories(:hardware).id, categories(:software).id]) |
29 | assert_equal categories(:personal), Category.find(:first, :order => :position) |
30 | end |
31 | |
32 | def test_reorder_alpha |
33 | assert_equal categories(:software), Category.find(:first, :order => :position) |
34 | Category.reorder_alpha |
35 | assert_equal categories(:hardware), Category.find(:first, :order => :position) |
36 | end |
37 | |
38 | def test_permalink |
39 | assert_equal 'http://myblog.net/articles/category/software', @category.permalink_url |
40 | end |
41 | |
42 | end |