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:
- 1276 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | require 'theme' |
3 | require 'theme_mock' |
4 | |
5 | class ThemeTest < Test::Unit::TestCase |
6 | fixtures :blogs |
7 | |
8 | def setup |
9 | @theme = Theme.new("test", "test") |
10 | end |
11 | |
12 | def test_layout |
13 | assert_equal "../../themes/test/layouts/default", @theme.layout |
14 | end |
15 | |
16 | def test_description |
17 | # Filtering now occurs in the controller, not the model |
18 | assert_equal "### Azure\n\nTypo's default theme by [Justin Palmer][1]\n\n[1]: http://www.encytemedia.com/ \"Encyte Media\"\n", |
19 | this_blog.current_theme.description |
20 | end |
21 | |
22 | def test_themes_root |
23 | # Overridden in theme_mock |
24 | assert_equal RAILS_ROOT + "/test/mocks/themes", Theme.themes_root |
25 | end |
26 | |
27 | def test_theme_from_path |
28 | assert_equal "azure", Theme.theme_from_path(this_blog.current_theme.path).name |
29 | end |
30 | |
31 | def test_search_theme_directory |
32 | assert_equal %w{ 123-numbers-in-path CamelCaseDirectory azure i-have-special-chars }, |
33 | Theme.search_theme_directory.collect { |t| File.basename(t) }.sort |
34 | end |
35 | |
36 | def test_installed_themes |
37 | assert_equal Theme.installed_themes, Theme.search_theme_directory |
38 | end |
39 | |
40 | def test_find_all |
41 | assert Theme.find_all.collect { |t| t.name }.include?(this_blog.current_theme.name) |
42 | assert_equal 4, Theme.find_all.size |
43 | end |
44 | end |