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:
- 1621 Bytes
1 | require File.dirname(__FILE__) + '/../../test_helper' |
2 | require 'admin/feedback_controller' |
3 | require 'comment' |
4 | require 'trackback' |
5 | |
6 | # Re-raise errors caught by the controller. |
7 | class Admin::FeedbackController; def rescue_action(e) raise e end; end |
8 | |
9 | class Admin::FeedbackControllerTest < Test::Unit::TestCase |
10 | fixtures :contents, :users, :resources, :text_filters, |
11 | :blogs, :categorizations, :feedback |
12 | |
13 | def setup |
14 | @controller = Admin::FeedbackController.new |
15 | @request = ActionController::TestRequest.new |
16 | @response = ActionController::TestResponse.new |
17 | @request.session = { :user => users(:tobi) } |
18 | end |
19 | |
20 | def test_index |
21 | get :index |
22 | |
23 | assert_response :success |
24 | assert_template 'list' |
25 | assert_equal Feedback.count, assigns(:feedback).size |
26 | end |
27 | |
28 | def test_list_unconfirmed |
29 | get :index, :confirmed => 'f' |
30 | |
31 | assert_response :success |
32 | assert_template 'list' |
33 | |
34 | assert_equal(Feedback.count(:conditions => ['blog_id = 1 AND status_confirmed = ?', false]), |
35 | assigns(:feedback).size) |
36 | |
37 | end |
38 | |
39 | def test_list_spam |
40 | get :index, :published => 'f' |
41 | |
42 | assert_response :success |
43 | assert_template 'list' |
44 | |
45 | assert_equal(Feedback.count(:conditions => ['blog_id = 1 AND published = ?', false]), |
46 | assigns(:feedback).size) |
47 | end |
48 | |
49 | def test_list_unconfirmed_spam |
50 | get :index, :published => 'f', :confirmed => 'f' |
51 | |
52 | assert_response :success |
53 | assert_template 'list' |
54 | |
55 | assert_equal(Feedback.count(:conditions => ['blog_id = 1 AND published = ? AND status_confirmed = ?', false, false]), |
56 | assigns(:feedback).size) |
57 | end |
58 | |
59 | end |