comparison test/functional/repositories_filesystem_controller_test.rb @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents 433d4f72a19b
children e248c7af89ec
comparison
equal deleted inserted replaced
1294:3e4c3460b6ca 1295:622f24f53b42
1 # Redmine - project management software 1 # Redmine - project management software
2 # Copyright (C) 2006-2012 Jean-Philippe Lang 2 # Copyright (C) 2006-2013 Jean-Philippe Lang
3 # 3 #
4 # This program is free software; you can redistribute it and/or 4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License 5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2 6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version. 7 # of the License, or (at your option) any later version.
107 end 107 end
108 end 108 end
109 end 109 end
110 110
111 def test_show_utf16 111 def test_show_utf16
112 with_settings :repositories_encodings => 'UTF-16' do 112 enc = (RUBY_VERSION == "1.9.2" ? 'UTF-16LE' : 'UTF-16')
113 with_settings :repositories_encodings => enc do
113 get :entry, :id => PRJ_ID, 114 get :entry, :id => PRJ_ID,
114 :path => repository_path_hash(['japanese', 'utf-16.txt'])[:param] 115 :path => repository_path_hash(['japanese', 'utf-16.txt'])[:param]
115 assert_response :success 116 assert_response :success
116 assert_tag :tag => 'th', 117 assert_tag :tag => 'th',
117 :content => '2', 118 :content => '2',