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:
- 1349 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | class Content |
4 | def self.find_last_posted |
5 | find(:first, :conditions => ['created_at < ?', Time.now], |
6 | :order => 'created_at DESC') |
7 | end |
8 | end |
9 | |
10 | context 'ArticlesController' do |
11 | controller_name :articles |
12 | fixtures(:contents, :feedback, :categories, :blogs, :users, :categorizations, |
13 | :text_filters, :articles_tags, :tags) |
14 | |
15 | setup do |
16 | IPSocket.stub!(:getaddress).and_return do |
17 | raise SocketError.new("getaddrinfo: Name or service not known") |
18 | end |
19 | end |
20 | |
21 | specify 'can get a category when permalink == name' do |
22 | get 'category', :id => 'software' |
23 | |
24 | controller.should_render :action => 'index' |
25 | assigns[:page_title].should == 'category software' |
26 | end |
27 | |
28 | specify 'can get a category index when permalink != name' do |
29 | get 'category', :id => 'weird-permalink' |
30 | controller.should_render :action => 'index' |
31 | assigns[:page_title].should == "category weird-permalink" |
32 | end |
33 | |
34 | specify 'can get an empty category' do |
35 | get 'category', :id => 'life-on-mars' |
36 | controller.should_render :action => 'error' |
37 | assigns[:message].should == "Can't find posts with category 'life-on-mars'" |
38 | end |
39 | |
40 | |
41 | specify 'index' do |
42 | controller.should_render :index |
43 | get 'index' |
44 | assigns[:pages].should_not_be_nil |
45 | assigns[:articles].should_not_be_nil |
46 | end |
47 | end |