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:
- 7105 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | context 'Given a parsed flickr fixture with six items' do |
4 | setup do |
5 | @flickr = FlickrAggregation.new('', false) |
6 | @flickr.send(:parse, fixture) |
7 | end |
8 | |
9 | specify 'there should be 6 pictures' do |
10 | @flickr.should_have(6).pics |
11 | end |
12 | |
13 | specify 'choose(4) should pick 4 pictures at random' do |
14 | @flickr.should_have(4).choose(4) |
15 | end |
16 | |
17 | specify 'port of test_fields' do |
18 | @flickr.title.should == "xal's Photos" |
19 | @flickr.link.should == "http://www.flickr.com/photos/40235412@N00/" |
20 | @flickr.description.should == "A feed of xal's Photos" |
21 | end |
22 | |
23 | specify 'port of test_image' do |
24 | @flickr.pics[0].title.should == "p1010009" |
25 | @flickr.pics[0].link.should == "http://www.flickr.com/photos/40235412@N00/4903142/" |
26 | @flickr.pics[0].description.should_not_be nil |
27 | @flickr.pics[0].date.should == Time.parse("Wed, 16 Feb 2005 07:15:48 -0800") |
28 | end |
29 | |
30 | specify 'port of test_image_desc_parsers' do |
31 | @flickr.pics[0].image.should == "http://photos3.flickr.com/4903142_ada4539ae8_m.jpg" |
32 | @flickr.pics[0].thumb.should == "http://photos3.flickr.com/4903142_ada4539ae8_t.jpg" |
33 | end |
34 | |
35 | def fixture |
36 | %{<?xml version="1.0" encoding="utf-8"?> |
37 | <rss version="2.0"> |
38 | <channel> |
39 | <title>xal's Photos</title> |
40 | <link>http://www.flickr.com/photos/40235412@N00/</link> |
41 | <description>A feed of xal's Photos</description> |
42 | <pubDate>Wed, 16 Feb 2005 07:15:48 -0800</pubDate> |
43 | <lastBuildDate>Wed, 16 Feb 2005 07:15:48 -0800</lastBuildDate> |
44 | <generator>http://www.flickr.com/</generator> |
45 | <image> |
46 | <url>http://www.flickr.com/images/buddyicon.jpg?40235412@N00</url> |
47 | <title>xals Photos</title> |
48 | <link>http://www.flickr.com/photos/40235412@N00/</link> |
49 | </image> |
50 | |
51 | <item> |
52 | <title>p1010009</title> |
53 | <link>http://www.flickr.com/photos/40235412@N00/4903142/</link> |
54 | <description><p><a href="http://www.flickr.com/people/40235412@N00/">xal</a> posted a photo:</p> |
55 | |
56 | <p><a href="http://www.flickr.com/photos/40235412@N00/4903142/" title="p1010009"><img src="http://photos3.flickr.com/4903142_ada4539ae8_m.jpg" width="240" height="180" alt="p1010009" style="border: 1px solid #000000;" /></a></p> |
57 | |
58 | </description> |
59 | <pubDate>Wed, 16 Feb 2005 07:15:48 -0800</pubDate> |
60 | <author>nobody@flickr.com (xal)</author> |
61 | <guid isPermaLink="false">tag:flickr.com,2004:/photo/4903142</guid> |
62 | </item> |
63 | <item> |
64 | <title>IMG_2472</title> |
65 | <link>http://www.flickr.com/photos/40235412@N00/4903134/</link> |
66 | <description><p><a href="http://www.flickr.com/people/40235412@N00/">xal</a> posted a photo:</p> |
67 | |
68 | <p><a href="http://www.flickr.com/photos/40235412@N00/4903134/" title="IMG_2472"><img src="http://photos5.flickr.com/4903134_c21069ee3d_m.jpg" width="240" height="180" alt="IMG_2472" style="border: 1px solid #000000;" /></a></p> |
69 | |
70 | </description> |
71 | <pubDate>Wed, 16 Feb 2005 07:15:28 -0800</pubDate> |
72 | <author>nobody@flickr.com (xal)</author> |
73 | <guid isPermaLink="false">tag:flickr.com,2004:/photo/4903134</guid> |
74 | </item> |
75 | <item> |
76 | <title>IMG_2463</title> |
77 | <link>http://www.flickr.com/photos/40235412@N00/4903116/</link> |
78 | <description><p><a href="http://www.flickr.com/people/40235412@N00/">xal</a> posted a photo:</p> |
79 | |
80 | <p><a href="http://www.flickr.com/photos/40235412@N00/4903116/" title="IMG_2463"><img src="http://photos4.flickr.com/4903116_27512793a4_m.jpg" width="240" height="180" alt="IMG_2463" style="border: 1px solid #000000;" /></a></p> |
81 | |
82 | </description> |
83 | <pubDate>Wed, 16 Feb 2005 07:14:57 -0800</pubDate> |
84 | <author>nobody@flickr.com (xal)</author> |
85 | <guid isPermaLink="false">tag:flickr.com,2004:/photo/4903116</guid> |
86 | </item> |
87 | <item> |
88 | <title>IMG_2367</title> |
89 | <link>http://www.flickr.com/photos/40235412@N00/4903079/</link> |
90 | <description><p><a href="http://www.flickr.com/people/40235412@N00/">xal</a> posted a photo:</p> |
91 | |
92 | <p><a href="http://www.flickr.com/photos/40235412@N00/4903079/" title="IMG_2367"><img src="http://photos4.flickr.com/4903079_7a2cbb125b_m.jpg" width="240" height="180" alt="IMG_2367" style="border: 1px solid #000000;" /></a></p> |
93 | |
94 | </description> |
95 | <pubDate>Wed, 16 Feb 2005 07:14:36 -0800</pubDate> |
96 | <author>nobody@flickr.com (xal)</author> |
97 | <guid isPermaLink="false">tag:flickr.com,2004:/photo/4903079</guid> |
98 | </item> |
99 | <item> |
100 | <title>IMG_2365</title> |
101 | <link>http://www.flickr.com/photos/40235412@N00/4903059/</link> |
102 | <description><p><a href="http://www.flickr.com/people/40235412@N00/">xal</a> posted a photo:</p> |
103 | |
104 | <p><a href="http://www.flickr.com/photos/40235412@N00/4903059/" title="IMG_2365"><img src="http://photos5.flickr.com/4903059_72a2d9ca1e_m.jpg" width="240" height="180" alt="IMG_2365" style="border: 1px solid #000000;" /></a></p> |
105 | |
106 | </description> |
107 | <pubDate>Wed, 16 Feb 2005 07:14:17 -0800</pubDate> |
108 | <author>nobody@flickr.com (xal)</author> |
109 | <guid isPermaLink="false">tag:flickr.com,2004:/photo/4903059</guid> |
110 | </item> |
111 | <item> |
112 | <title>IMG_2201</title> |
113 | <link>http://www.flickr.com/photos/40235412@N00/4903030/</link> |
114 | <description><p><a href="http://www.flickr.com/people/40235412@N00/">xal</a> posted a photo:</p> |
115 | |
116 | <p><a href="http://www.flickr.com/photos/40235412@N00/4903030/" title="IMG_2201"><img src="http://photos5.flickr.com/4903030_9a7fcb492e_m.jpg" width="240" height="180" alt="IMG_2201" style="border: 1px solid #000000;" /></a></p> |
117 | |
118 | </description> |
119 | <pubDate>Wed, 16 Feb 2005 07:13:59 -0800</pubDate> |
120 | <author>nobody@flickr.com (xal)</author> |
121 | <guid isPermaLink="false">tag:flickr.com,2004:/photo/4903030</guid> |
122 | </item> |
123 | |
124 | </channel> |
125 | </rss> |
126 | } |
127 | end |
128 | end |