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:
- 999 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class AmazonSidebarTest < Test::Unit::TestCase |
4 | fixtures :sidebars |
5 | |
6 | def test_creation |
7 | assert_kind_of Sidebar, AmazonSidebar.new |
8 | end |
9 | |
10 | def test_default_title |
11 | assert_equal 'Cited books', AmazonSidebar.new.title |
12 | end |
13 | |
14 | def test_default_associate_id |
15 | assert_equal 'justasummary-20', AmazonSidebar.new.associate_id |
16 | end |
17 | |
18 | def test_default_maxlinks |
19 | assert_equal 4, AmazonSidebar.new.maxlinks |
20 | end |
21 | |
22 | def test_description |
23 | assert_equal "Adds sidebar links to any amazon books linked in the body of the page", |
24 | AmazonSidebar.description |
25 | end |
26 | |
27 | def test_initialization_with_hash |
28 | sb = AmazonSidebar.new(:title => 'Books', |
29 | :associate_id => 'justasummary-21', |
30 | :maxlinks => 3) |
31 | assert sb |
32 | assert_equal 'Books', sb.title |
33 | assert_equal 'justasummary-21', sb.associate_id |
34 | assert_equal 3, sb.maxlinks |
35 | end |
36 | end |