Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 844 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_redirected_to :action => 'index' |
28 | end |
29 | |
30 | def test_preview |
31 | get :preview, :theme => 'azure' |
32 | assert_response :success |
33 | end |
34 | end |