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:
- 5594 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class MagnoliaTest < Test::Unit::TestCase |
4 | |
5 | def setup |
6 | @mag = ::MagnoliaAggregation.new("",false) |
7 | @mag.send(:parse, fixture) |
8 | end |
9 | |
10 | def test_parser |
11 | assert_equal 3, @mag.pics.size |
12 | end |
13 | |
14 | def test_random_chooser |
15 | assert_equal 2, @mag.choose(2).size |
16 | end |
17 | |
18 | def test_fields |
19 | assert_equal "Ma.gnolia: steve.longdo's Recent Bookmarks", @mag.title |
20 | assert_equal "http://ma.gnolia.com/rss/full/people/steve.longdo", @mag.link |
21 | assert_equal "steve.longdo's Recent Bookmarks", @mag.description |
22 | end |
23 | |
24 | def test_image |
25 | assert_equal "Typo Administration: article tagging II...", @mag.pics[1].title |
26 | assert_equal "http://ma.gnolia.com/bookmarks/cestusisc/dispatch", @mag.pics[1].link |
27 | assert_not_nil @mag.pics[1].description |
28 | assert_equal Time.parse("Thu, 9 March 2006 00:54:22 PST"), @mag.pics[1].date |
29 | end |
30 | |
31 | def test_image_desc_parser |
32 | assert_equal "http://scst.srv.girafa.com/srv/i?i=sc010159&r=http://www.stevelongdo.com/articles/2006/03/08/typo-administration-article-tagging-ii&s=2c760cc2f54920b7", @mag.pics[1].image |
33 | end |
34 | |
35 | private |
36 | |
37 | def fixture |
38 | %{<?xml version="1.0" encoding="UTF-8"?> |
39 | <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"> |
40 | <channel> |
41 | <title>Ma.gnolia: steve.longdo's Recent Bookmarks</title> |
42 | <link>http://ma.gnolia.com/rss/full/people/steve.longdo</link> |
43 | <language>en-us</language> |
44 | <ttl>40</ttl> |
45 | <description>steve.longdo's Recent Bookmarks</description> |
46 | <item> |
47 | <title>Using a Proxy class for debugging</title> |
48 | <author>steve.longdo</author> |
49 | <description type="html"><p><a href="http://ma.gnolia.com/bookmarks/qawatech/dispatch"><img alt="Using-a-proxy-class-for-debugging&amp;s=55dc698e9016ced0" src="http://scst.srv.girafa.com/srv/i?i=sc010159&amp;r=http://habtm.com/articles/2006/03/06/using-a-proxy-class-for-debugging&amp;s=55dc698e9016ced0" /></a></p> |
50 | |
51 | <p>No Description</p> |
52 | |
53 | <p><b>Tags:</b> </p></description> |
54 | <pubDate>Fri, 10 March 2006 22:16:24 PST</pubDate> |
55 | <guid>http://ma.gnolia.com/bookmarks/qawatech</guid> |
56 | <link>http://ma.gnolia.com/bookmarks/qawatech/dispatch</link> |
57 | </item> |
58 | <item> |
59 | <title>Typo Administration: article tagging II...</title> |
60 | <author>steve.longdo</author> |
61 | <description type="html"><p><a href="http://ma.gnolia.com/bookmarks/cestusisc/dispatch"><img alt="Typo-administration-article-tagging-ii&amp;s=2c760cc2f54920b7" src="http://scst.srv.girafa.com/srv/i?i=sc010159&amp;r=http://www.stevelongdo.com/articles/2006/03/08/typo-administration-article-tagging-ii&amp;s=2c760cc2f54920b7" /></a></p> |
62 | |
63 | <p>No Description</p> |
64 | |
65 | <p><b>Tags:</b> </p></description> |
66 | <pubDate>Thu, 9 March 2006 00:54:22 PST</pubDate> |
67 | <guid>http://ma.gnolia.com/bookmarks/cestusisc</guid> |
68 | <link>http://ma.gnolia.com/bookmarks/cestusisc/dispatch</link> |
69 | </item> |
70 | <item> |
71 | <title>FireBug - JS/AJAX/CSS/Chops Veggies?</title> |
72 | <author>steve.longdo</author> |
73 | <description type="html"><p><a href="http://ma.gnolia.com/bookmarks/showuw/dispatch"><img alt="&amp;s=1c7bf627bbfc8164" src="http://scst.srv.girafa.com/srv/i?i=sc010159&amp;r=http://www.joehewitt.com/software/firebug/&amp;s=1c7bf627bbfc8164" /></a></p> |
74 | |
75 | <p></p> |
76 | |
77 | <p><b>Tags:</b> <a href="http://ma.gnolia.com/people/steve.longdo/tags/firefox" rel="tag" title="Find steve.longdo bookmarks tagged 'firefox'">firefox</a>, <a href="http://ma.gnolia.com/people/steve.longdo/tags/javascript" rel="tag" title="Find steve.longdo bookmarks tagged 'javascript'">javascript</a>, <a href="http://ma.gnolia.com/people/steve.longdo/tags/ajax" rel="tag" title="Find steve.longdo bookmarks tagged 'ajax'">ajax</a>, <a href="http://ma.gnolia.com/people/steve.longdo/tags/extension" rel="tag" title="Find steve.longdo bookmarks tagged 'extension'">extension</a>, <a href="http://ma.gnolia.com/people/steve.longdo/tags/debugging" rel="tag" title="Find steve.longdo bookmarks tagged 'debugging'">debugging</a>, <a href="http://ma.gnolia.com/people/steve.longdo/tags/development" rel="tag" title="Find steve.longdo bookmarks tagged 'development'">development</a>, <a href="http://ma.gnolia.com/people/steve.longdo/tags/programming" rel="tag" title="Find steve.longdo bookmarks tagged 'programming'">programming</a>, <a href="http://ma.gnolia.com/people/steve.longdo/tags/tools" rel="tag" title="Find steve.longdo bookmarks tagged 'tools'">tools</a>, <a href="http://ma.gnolia.com/people/steve.longdo/tags/web" rel="tag" title="Find steve.longdo bookmarks tagged 'web'">web</a>, <a href="http://ma.gnolia.com/people/steve.longdo/tags/imported" rel="tag" title="Find steve.longdo bookmarks tagged 'imported'">imported</a></p></description> |
78 | <pubDate>Tue, 7 March 2006 23:32:19 PST</pubDate> |
79 | <guid>http://ma.gnolia.com/bookmarks/showuw</guid> |
80 | <link>http://ma.gnolia.com/bookmarks/showuw/dispatch</link> |
81 | </item> |
82 | </channel> |
83 | </rss> |
84 | } |
85 | end |
86 | |
87 | end |