@@ -0,0 +1,38 | |||
|
1 | # redMine - project management software | |
|
2 | # Copyright (C) 2006-2007 Jean-Philippe Lang | |
|
3 | # | |
|
4 | # This program is free software; you can redistribute it and/or | |
|
5 | # modify it under the terms of the GNU General Public License | |
|
6 | # as published by the Free Software Foundation; either version 2 | |
|
7 | # of the License, or (at your option) any later version. | |
|
8 | # | |
|
9 | # This program is distributed in the hope that it will be useful, | |
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
|
12 | # GNU General Public License for more details. | |
|
13 | # | |
|
14 | # You should have received a copy of the GNU General Public License | |
|
15 | # along with this program; if not, write to the Free Software | |
|
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
|
17 | ||
|
18 | require File.dirname(__FILE__) + '/../test_helper' | |
|
19 | require 'application' | |
|
20 | ||
|
21 | # Re-raise errors caught by the controller. | |
|
22 | class ApplicationController; def rescue_action(e) raise e end; end | |
|
23 | ||
|
24 | class ApplicationControllerTest < Test::Unit::TestCase | |
|
25 | def setup | |
|
26 | @controller = ApplicationController.new | |
|
27 | @request = ActionController::TestRequest.new | |
|
28 | @response = ActionController::TestResponse.new | |
|
29 | end | |
|
30 | ||
|
31 | # check that all 4 supported languages are valid | |
|
32 | def test_localization | |
|
33 | assert_equal 4, GLoc.valid_languages.size | |
|
34 | GLoc.valid_languages.each do |lang| | |
|
35 | assert set_language_if_valid(lang) | |
|
36 | end | |
|
37 | end | |
|
38 | end |
General Comments 0
You need to be logged in to leave comments.
Login now