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:
- 911 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class PageTest < Test::Unit::TestCase |
4 | fixtures :contents |
5 | |
6 | def setup |
7 | @page = Page.find(9) |
8 | end |
9 | |
10 | def test_permalink_url |
11 | p = contents(:first_page) |
12 | assert_equal 'http://myblog.net/pages/page_one', p.permalink_url |
13 | end |
14 | |
15 | def test_edit_url |
16 | p = contents(:first_page) |
17 | assert_equal 'http://myblog.net/admin/pages/edit/9', p.edit_url |
18 | end |
19 | |
20 | def test_delete_url |
21 | p = contents(:first_page) |
22 | assert_equal 'http://myblog.net/admin/pages/destroy/9', p.delete_url |
23 | end |
24 | |
25 | def test_validate |
26 | a = Page.new |
27 | a.name = 'a-new-name' |
28 | a.title = 'A Fabulous Page yo!' |
29 | a.body = 'x' |
30 | |
31 | assert a.save |
32 | |
33 | b = Page.new |
34 | b.name = a.name |
35 | b.body = a.body |
36 | b.title = a.title |
37 | |
38 | assert !b.save |
39 | end |
40 | |
41 | def test_default_filter |
42 | a = Page.find(:first) |
43 | assert_equal 'textile', a.default_text_filter.name |
44 | end |
45 | end |