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:
- 641 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class CategoryTest < Test::Unit::TestCase |
4 | fixtures :articles, :categories |
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 | @software.articles << @article1 << @article2 |
16 | @personal.articles << @article3 |
17 | |
18 | c = Category.find_all_with_article_counters |
19 | |
20 | assert_equal @hardware.articles_count, c[0].article_counter.to_i |
21 | assert_equal @personal.articles_count, c[1].article_counter.to_i |
22 | assert_equal @software.articles_count, c[2].article_counter.to_i |
23 | end |
24 | end |