Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 13
- Log:
Initial import of Typo 2.6.0 sources from a downloaded Tarball.
Typo is a Ruby On Rails based blog engine.
- Author:
- adh
- Date:
- Sat Jul 22 22:25:02 +0100 2006
- Size:
- 1453 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | require 'theme_controller' |
3 | |
4 | # Re-raise errors caught by the controller. |
5 | class ThemeController; def rescue_action(e) raise e end; end |
6 | |
7 | class ThemeControllerTest < Test::Unit::TestCase |
8 | def setup |
9 | @controller = ThemeController.new |
10 | @request, @response = ActionController::TestRequest.new, ActionController::TestResponse.new |
11 | end |
12 | |
13 | def test_stylesheets |
14 | get :stylesheets, :filename => "azure.css" |
15 | assert_response :success |
16 | assert_equal "text/css", @response.headers['Content-Type'] |
17 | assert_equal "inline; filename=\"azure.css\"", @response.headers['Content-Disposition'] |
18 | end |
19 | |
20 | def test_images |
21 | get :images, :filename => "bg-tile.gif" |
22 | assert_response :success |
23 | assert_equal "image/gif", @response.headers['Content-Type'] |
24 | assert_equal "inline; filename=\"bg-tile.gif\"", @response.headers['Content-Disposition'] |
25 | end |
26 | |
27 | def test_malicious_path |
28 | get :stylesheets, :filename => "../../../config/database.yml" |
29 | assert_response 404 |
30 | end |
31 | |
32 | def test_view_theming |
33 | get :static_view_test |
34 | assert_response :success |
35 | |
36 | assert @response.body =~ /Static View Test from azure/ |
37 | end |
38 | |
39 | def disabled_test_javascript |
40 | get :stylesheets, :filename => "typo.js" |
41 | assert_response :success |
42 | assert_equal "text/javascript", @response.headers['Content-Type'] |
43 | assert_equal "inline; filename=\"typo.js\"", @response.headers['Content-Disposition'] |
44 | end |
45 | end |