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:
- 2914 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | context 'Given a new blog' do |
4 | setup { @blog = Blog.new } |
5 | |
6 | # Must find a better name for this key! |
7 | specify 'Global spam protection is not enabled' do |
8 | @blog.should_not_sp_global |
9 | end |
10 | |
11 | specify '#blog_name should be My Shiny Weblog!' do |
12 | @blog.blog_name.should == 'My Shiny Weblog!' |
13 | end |
14 | |
15 | specify '#blog_subtitle should be ""' do |
16 | @blog.blog_subtitle.should == '' |
17 | end |
18 | |
19 | specify "#sp_article_auto_close should be 0" do |
20 | @blog.sp_article_auto_close.should == 0 |
21 | end |
22 | |
23 | specify "#sp_allow_non_ajax_comments should be false" do |
24 | @blog.should_sp_allow_non_ajax_comments |
25 | end |
26 | |
27 | specify "#sp_url_limit should be 0" do |
28 | @blog.sp_url_limit.should_be 0 |
29 | end |
30 | |
31 | specify "#sp_akismet_key should be blank" do |
32 | @blog.sp_akismet_key.should == '' |
33 | end |
34 | |
35 | # Another icky setting name |
36 | specify "#itunes_explicit should be false" do |
37 | @blog.itunes_explicit.should_be false |
38 | end |
39 | |
40 | specify "Other itunes settings should be blank" do |
41 | %w{ author subtitle summary owner email name copyright}.each do |setting| |
42 | @blog.send("itunes_#{setting}").should == '' |
43 | end |
44 | end |
45 | |
46 | specify '#text_filter and #comment_text_filter should be blank' do |
47 | @blog.text_filter.should == '' |
48 | @blog.comment_text_filter.should == '' |
49 | end |
50 | |
51 | specify '#limit_article_display and #limit_rss_display should be 10' do |
52 | @blog.limit_article_display.should == 10 |
53 | @blog.limit_rss_display.should == 10 |
54 | end |
55 | |
56 | specify 'Pings should not be allowed by default' do |
57 | @blog.should_not_default_allow_pings |
58 | end |
59 | |
60 | specify 'Comments should be allowed by default' do |
61 | @blog.should_default_allow_comments |
62 | end |
63 | |
64 | specify 'Should not link to author' do |
65 | @blog.should_not_link_to_author |
66 | end |
67 | |
68 | specify 'Should show extended on rss' do |
69 | @blog.should_show_extended_on_rss |
70 | end |
71 | |
72 | specify '#theme should be "azure"' do |
73 | @blog.theme.should == 'azure' |
74 | end |
75 | |
76 | specify 'should not use gravatar' do |
77 | @blog.should_not_use_gravatar |
78 | end |
79 | |
80 | # Another clumsy setting name |
81 | specify '#global_pings_disable should be false' do |
82 | @blog.global_pings_disable.should == false |
83 | @blog.should_not_global_pings_disable |
84 | end |
85 | |
86 | specify 'should ping technorati, blog.gs and weblogs.com' do |
87 | @blog.ping_urls.should == "http://rpc.technorati.com/rpc/ping\nhttp://ping.blo.gs/\nhttp://rpc.weblogs.com/RPC2" |
88 | end |
89 | |
90 | specify 'should send outbound pings' do |
91 | @blog.should_send_outbound_pings |
92 | end |
93 | |
94 | specify '#email_from should be typo@example.com' do |
95 | @blog.email_from.should == 'typo@example.com' |
96 | end |
97 | |
98 | specify 'Jabber address and password should be blank' do |
99 | @blog.jabber_address.should_be_blank |
100 | @blog.jabber_password.should_be_blank |
101 | end |
102 | |
103 | specify '#is_okay should be false until #blog_name is explicitly set' do |
104 | @blog.is_ok?.should_be false |
105 | @blog.blog_name = 'Specific blog name' |
106 | @blog.is_ok?.should_be true |
107 | end |
108 | end |