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:
- 943 Bytes
1 | require File.dirname(__FILE__) + '/../../test_helper' |
2 | require 'admin/textfilters_controller' |
3 | |
4 | # Re-raise errors caught by the controller. |
5 | class Admin::TextfiltersController; def rescue_action(e) raise e end; end |
6 | |
7 | class Admin::TextfiltersControllerTest < Test::Unit::TestCase |
8 | fixtures :text_filters, :users |
9 | |
10 | def setup |
11 | @controller = Admin::TextfiltersController.new |
12 | @request = ActionController::TestRequest.new |
13 | @response = ActionController::TestResponse.new |
14 | |
15 | @request.session = { :user => users(:tobi) } |
16 | end |
17 | |
18 | def test_new_without_filters |
19 | post :new, :textfilter => { :name => 'filterx', |
20 | :description => 'Filter X', :markup => 'markdown' } |
21 | assert_response :redirect, :action => 'show' |
22 | end |
23 | |
24 | def test_edit_without_filters |
25 | post :edit, :id => 1, :textfilter => { :name => 'filterx', |
26 | :description => 'Filter X', :markup => 'markdown' } |
27 | assert_response :redirect, :action => 'show' |
28 | end |
29 | end |