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:
- 1140 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | require 'redirect_controller' |
3 | |
4 | # Re-raise errors caught by the controller. |
5 | class RedirectController; def rescue_action(e) raise e end; end |
6 | |
7 | class RedirectControllerTest < Test::Unit::TestCase |
8 | fixtures :redirects |
9 | |
10 | def setup |
11 | @controller = RedirectController.new |
12 | @request = ActionController::TestRequest.new |
13 | @response = ActionController::TestResponse.new |
14 | |
15 | @request.relative_url_root = nil # avoid failures if environment.rb defines a relative URL root |
16 | end |
17 | |
18 | # Replace this with your real tests. |
19 | def test_redirect |
20 | get :redirect, :from => "foo/bar" |
21 | assert_response 301 |
22 | assert_response :redirect, "/someplace/else" |
23 | end |
24 | |
25 | def test_url_root_redirect |
26 | @request.relative_url_root = "/blog" |
27 | get :redirect, :from => "foo/bar" |
28 | assert_response 301 |
29 | assert_response :redirect, "/blog/someplace/else" |
30 | |
31 | get :redirect, :from => "bar/foo" |
32 | assert_response 301 |
33 | assert_response :redirect, "/blog/someplace/else" |
34 | end |
35 | |
36 | def test_no_redirect |
37 | get :redirect, :from => "something/that/isnt/there" |
38 | assert_response 404 |
39 | end |
40 | end |