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:
- 850 Bytes
1 | require File.dirname(__FILE__) + '/../../test_helper' |
2 | require 'admin/themes_controller' |
3 | |
4 | # Re-raise errors caught by the controller. |
5 | class Admin::ThemesController; def rescue_action(e) raise e end; end |
6 | |
7 | class Admin::ThemesControllerTest < Test::Unit::TestCase |
8 | fixtures :users |
9 | |
10 | def setup |
11 | @controller = Admin::ThemesController.new |
12 | @request = ActionController::TestRequest.new |
13 | @response = ActionController::TestResponse.new |
14 | |
15 | @request.session = { :user => users(:tobi) } |
16 | end |
17 | |
18 | # Replace this with your real tests. |
19 | def test_index |
20 | get :index |
21 | assert_response :success |
22 | assert_not_nil assigns(:themes) |
23 | end |
24 | |
25 | def test_switchto |
26 | get :switchto, :theme => 'azure' |
27 | assert_response :redirect, :action => 'index' |
28 | end |
29 | |
30 | def test_preview |
31 | get :preview, :theme => 'azure' |
32 | assert_response :success |
33 | end |
34 | end |