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:
- 570 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class PageTest < Test::Unit::TestCase |
4 | fixtures :pages |
5 | |
6 | def setup |
7 | @page = Page.find(1) |
8 | end |
9 | |
10 | def test_transform |
11 | a = Page.new |
12 | a.name = 'foo' |
13 | a.body = 'abcdabcd' |
14 | a.title = 'The Page of Foo' |
15 | assert a.save |
16 | |
17 | assert a.body_html == a.body |
18 | end |
19 | |
20 | def test_validate |
21 | a = Page.new |
22 | a.name = 'a-new-name' |
23 | a.title = 'A Fabulous Page yo!' |
24 | a.body = 'x' |
25 | |
26 | assert a.save |
27 | |
28 | b = Page.new |
29 | b.name = a.name |
30 | b.body = a.body |
31 | b.title = a.title |
32 | |
33 | assert !b.save |
34 | end |
35 | end |