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:
- 791 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | context "Given the first Blog fixture" do |
4 | fixtures :blogs, :contents, :sidebars |
5 | |
6 | setup { @blog = blogs(:default) } |
7 | |
8 | specify ":blog_name == 'test blog'" do |
9 | @blog.blog_name.should == 'test blog' |
10 | end |
11 | |
12 | specify "values boolify like Perl" do |
13 | {"0 but true" => true, "" => false, |
14 | "false" => false, 1 => true, 0 => false, |
15 | nil => false, 'f' => false }.each do |value, expected| |
16 | @blog.sp_global = value |
17 | @blog.sp_global.should == expected |
18 | end |
19 | end |
20 | |
21 | specify "blog.url_for does the right thing" do |
22 | @blog.url_for(:controller => 'articles', :action => 'read', :id => 1).should == 'http://myblog.net/articles/read/1' |
23 | end |
24 | |
25 | specify "blog has one sidebar" do |
26 | @blog.should_have(1).sidebars |
27 | end |
28 | end |