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:
- 1109 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class ConfigurationTest < Test::Unit::TestCase |
4 | fixtures :settings |
5 | |
6 | def setup |
7 | config.reload |
8 | end |
9 | |
10 | def test_reload |
11 | Setting.create("name" => "test", "value" => "test") |
12 | assert_nil config['test'] |
13 | config.reload |
14 | assert_equal "test", config['test'] |
15 | end |
16 | |
17 | def test_fields |
18 | assert_equal ["blog_name", |
19 | "blog_subtitle", |
20 | "comment_text_filter", |
21 | "default_allow_comments", |
22 | "default_allow_pings", |
23 | "geourl_location", |
24 | "limit_article_display", |
25 | "limit_rss_display", |
26 | "link_to_author", |
27 | "sp_article_auto_close", |
28 | "sp_global", |
29 | "sp_url_limit", |
30 | "text_filter", |
31 | "theme"], Configuration.fields.keys.sort |
32 | end |
33 | |
34 | def test_booleans |
35 | assert_equal true, config[:sp_global] |
36 | assert_equal true, config[:default_allow_comments] |
37 | assert_equal false, config[:default_allow_pings] |
38 | |
39 | assert TrueClass === config[:sp_global] |
40 | assert String === config[:blog_name] |
41 | assert Fixnum === config[:limit_rss_display] |
42 | end |
43 | |
44 | def test_is_ok |
45 | assert config.is_ok? |
46 | end |
47 | |
48 | end |