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:
- 699 Bytes
1 | require File.dirname(__FILE__) + '/../../test_helper' |
2 | require 'admin/general_controller' |
3 | |
4 | # Re-raise errors caught by the controller. |
5 | class Admin::GeneralController; def rescue_action(e) raise e end; end |
6 | |
7 | class Admin::GeneralControllerTest < Test::Unit::TestCase |
8 | fixtures :users |
9 | |
10 | def setup |
11 | @controller = Admin::GeneralController.new |
12 | @request = ActionController::TestRequest.new |
13 | @response = ActionController::TestResponse.new |
14 | @request.session = { :user => users(:tobi) } |
15 | end |
16 | |
17 | def test_index |
18 | get :index |
19 | assert_template 'index' |
20 | end |
21 | |
22 | def test_redirect |
23 | get :redirect |
24 | assert_response :redirect, :controller => 'admin/general', :action => 'index' |
25 | end |
26 | end |