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:
- 1275 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class BlogTest < Test::Unit::TestCase |
4 | fixtures :blogs, :contents, :sidebars |
5 | |
6 | def setup |
7 | @blog = Blog.find(:first) |
8 | end |
9 | |
10 | def test_blog_name |
11 | assert_equal "test blog", @blog.blog_name |
12 | end |
13 | |
14 | def test_default_allow_pings |
15 | assert ! @blog.default_allow_pings? |
16 | end |
17 | |
18 | def test_setting_booleans_with_integers |
19 | @blog.sp_global = 1 |
20 | assert @blog.sp_global |
21 | @blog.sp_global = 0 |
22 | assert !@blog.sp_global |
23 | end |
24 | |
25 | def test_setting_booleans_with_strings |
26 | {"0 but true" => true, "" => false, |
27 | "false" => false, 1 => true, 0 => false, |
28 | nil => false, 'f' => false }.each do |value, expected| |
29 | @blog.sp_global = value |
30 | assert_equal expected, @blog.sp_global |
31 | end |
32 | end |
33 | |
34 | def test_current_theme_path |
35 | assert_equal Theme.themes_root + "/azure", @blog.current_theme.path |
36 | end |
37 | |
38 | def test_current_theme |
39 | assert_equal "azure", @blog.current_theme.name |
40 | end |
41 | |
42 | def test_url_for |
43 | assert_equal('http://myblog.net/articles/read/1', |
44 | @blog.url_for(:controller => 'articles', |
45 | :action => 'read', |
46 | :id => 1)) |
47 | end |
48 | |
49 | def test_blog_has_sidebars |
50 | assert_equal 1, @blog.sidebars.size |
51 | end |
52 | end |