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:
- 1183 Bytes
1 | require File.dirname(__FILE__) + '/../../test_helper' |
2 | require 'admin/resources_controller' |
3 | |
4 | # Re-raise errors caught by the controller. |
5 | class Admin::ResourcesController; def rescue_action(e) raise e end; end |
6 | |
7 | class Admin::ResourcesControllerTest < Test::Unit::TestCase |
8 | fixtures :users, :resources |
9 | |
10 | def setup |
11 | @controller = Admin::ResourcesController.new |
12 | @request = ActionController::TestRequest.new |
13 | @response = ActionController::TestResponse.new |
14 | @request.session = { :user => users(:tobi) } |
15 | end |
16 | |
17 | def test_list |
18 | get :list |
19 | assert_response :success |
20 | assert_template 'list' |
21 | assert_template_has 'resources' |
22 | assert_not_nil assigns(:resources) |
23 | assert_not_nil assigns(:resources_pages) |
24 | end |
25 | |
26 | def test_destroy |
27 | assert_not_nil Resource.find(1) |
28 | |
29 | get :destroy, :id => 1 |
30 | assert_response :success |
31 | assert_template 'destroy' |
32 | assert_not_nil assigns(:file) |
33 | |
34 | post :destroy, :id => 1 |
35 | assert_response 302 |
36 | follow_redirect |
37 | assert_template 'list' |
38 | end |
39 | |
40 | def test_new |
41 | get :new |
42 | assert_response :success |
43 | assert_template 'new' |
44 | end |
45 | |
46 | def test_upload |
47 | # unsure how to test upload constructs :'( |
48 | end |
49 | end |